-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update our len() function to account for pending
To ensure that our len function returns data that is more accurate to calculate the number of instances we need, subtract the XPENDING count from the XLEN count. This reduces the cases where we a new version or scaling config changes will result in a complete duplication of the pods simply because pending elements in the queue are counted as being in-queue. Use of XPENDING will allow us to subtract anything that has been claimed from the metric calculation.
- Loading branch information
1 parent
5828335
commit 5ae7c72
Showing
2 changed files
with
42 additions
and
3 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