Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increment cluster counter and delete orphaned meter in MetricsStore
Change to store the cluster counter value directly instead of remembering each counter reported by client or worker. This is helpful: (1) to reduce the space needed to store reported metrics (2) because counter value is historical summarized value. There is no need to delete the orphaned counter value. For all other metrics, we keep the original way: store all the original reported metrics and update the cluster metric value periodically. But to make it more accurate, a delete orphaned metrics logic is added. Metrics reported by worker/client which hasn't reported for a long period of time (configurable) will be deleted. This can help us to get more accurate throughput value. worker/client report throughput as the last 1 minute rate which does not make sense if it's orphaned. pr-link: #10850 change-id: cid-18696a6295023a783e2785ba845a6a58d4d6c862
- Loading branch information
Showing
13 changed files
with
408 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.