Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quota: delay throughput counter update in trieindex.throttle
When throughput quota usage might be exhausted in a child rule, in the previous implementation, the throughput counter would be updated immediately after the check, this might lead to over-accounting for parent quota configs. The comment changed the implementation to only update the counter if the traffic is confirmed to be within quota consumption. At the same time, go-carbon also makes sure to report throttled data points for soft throughput quota enforcement (i.e. with "none" dropping policy).
- Loading branch information
Showing
1 changed file
with
29 additions
and
12 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