-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset metric name lookup table when another worker resets the metric
The metric key index now accepts a function that gets called every time a key is deleted from the index, which happens at the next sync after another worker had deleted a key. The callback function finds the same metric in the local worker's registry and cleans up its lookup table. To make sure this happens deterministically for all workers, the key index sync is now also scheduled to run every `sync_interval` (1s by default). The goals are: - to prevent unbounded growth of the per-metric lookup tables; - to ensure that previously reset metrics can be used again.
- Loading branch information
Showing
4 changed files
with
88 additions
and
13 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