-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rule Concurrency: Prevent flapping of concurrency (#10189)
* Rule Concurrency: Prevent flapping of concurrency Iterates on #8146 The `isGroupAtRisk` function only uses the group's last evaluation time as a metric However, if the concurrency of the group causes the group's eval time to lower to less than the threshold, this will flap between enabling concurrency and disabling it on every run In this PR, a condition is added to also sum up the last evaluation time of each rule to compare against the threshold * Linting * Use the new `evaluationRuleTimeSum` field from the group * Linting * Add changelog + metric * Apply suggestions from code review Co-authored-by: gotjosh <[email protected]> * Unrevert crypto * Fix typo in changelog --------- Co-authored-by: gotjosh <[email protected]>
- Loading branch information
1 parent
ddb0f58
commit 3dc5104
Showing
4 changed files
with
103 additions
and
35 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