-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid recording duplicate metrics
Problem: All metrics are recorded by incrementing counters in a shared dictionary. As the number of metrics increase, so does the contention among Nginx worker process to increase those counters increases leading to higher CPU utilization(#2) and potentially will result in a drop in peak RPS. This also affects the collection phase of metrics where the shared dictionary needs to be locked for a longer time. Solution: Since half of the metrics being recorded are duplicate anyways, those metrics can be dropped. This doesn't result in any loss functionally since these metrics can be easily in Prometheus. From #8
- Loading branch information
Showing
3 changed files
with
0 additions
and
19 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