Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CELEBORN-1744] Cleanup old ResourceConsumption metrics #2946

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

turboFei
Copy link
Member

@turboFei turboFei commented Nov 25, 2024

What changes were proposed in this pull request?

Start the cleaner to cleanup old metrics for ResourceConsumptionSource and ThreadPoolSource.

Why are the changes needed?

Issue 1:
I found that, an application was finished long time ago, but I can still view the metrics in grafana dashboards.

Likes:

image image image

Issue 2:
I am working on the Celeborn Alert SOP for how to figure out the top app usages.
For this expr, I can not find the applicationId that wroten 140TB shuffle data.

topk(5, sum by (applicationId) (metrics_diskBytesWritten_Value{role="worker", applicationId=~"^application_.*"}))
image

But with this expr, the shuffle size match.

topk(5, sum by (name) (metrics_diskBytesWritten_Value{role="worker", applicationId=""}))
image

Please note that, the celeborn cluster has not take traffic, and only one testing application was running at that time.

image

Per the metrics, it seems that some metrics metrics_diskBytesWritten_Value with applicationId label were lost.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

GA.

@turboFei turboFei changed the title Cleaner metrics [CELEBORN-1744] Cleanup old ResourceConsumption metrics Nov 25, 2024
@@ -677,8 +677,6 @@ private[celeborn] class Worker(
private def handleTopResourceConsumption(userResourceConsumptions: util.Map[
UserIdentifier,
ResourceConsumption]): Unit = {
// Remove application top resource consumption gauges to refresh top resource consumption metrics.
removeAppResourceConsumption(topApplicationUserIdentifiers.keySet().asScala)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can leave it be cleaned by the cleaner thread?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder the metrics with appId label lost is related with this.

@turboFei
Copy link
Member Author

gentle ping @SteNicholas @FMX

@turboFei turboFei changed the title [CELEBORN-1744] Cleanup old ResourceConsumption metrics [CELEBORN-1744] Cleanup old ResourceConsumption Nov 26, 2024
@turboFei turboFei changed the title [CELEBORN-1744] Cleanup old ResourceConsumption [CELEBORN-1744] Cleanup old ResourceConsumption metrics Nov 26, 2024
@FMX
Copy link
Contributor

FMX commented Nov 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants