forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Store Gateway] Token bucket limiter (cortexproject#6016)
* Create TokenBucket Signed-off-by: Justin Jung <[email protected]> * Update bucket stores to pass token bucket Signed-off-by: Justin Jung <[email protected]> * Move limiters to a new file Signed-off-by: Justin Jung <[email protected]> * Added tests for limiters and token bucket Signed-off-by: Justin Jung <[email protected]> * Add more tests Signed-off-by: Justin Jung <[email protected]> * Added enable flag Signed-off-by: Justin Jung <[email protected]> * Add dryrun feature Signed-off-by: Justin Jung <[email protected]> * Add doc Signed-off-by: Justin Jung <[email protected]> * Add changelog Signed-off-by: Justin Jung <[email protected]> * Lint Signed-off-by: Justin Jung <[email protected]> * Do not create pod token bucket if the feature is not enabled Signed-off-by: Justin Jung <[email protected]> * More docs Signed-off-by: Justin Jung <[email protected]> * Address comments Signed-off-by: Justin Jung <[email protected]> * Rename podTokenBucket to instanceTokenBucket Signed-off-by: Justin Jung <[email protected]> * Updated default values Signed-off-by: Justin Jung <[email protected]> * Rename TokenBucketLimiter to TokenBucketBytesLimiter Signed-off-by: Justin Jung <[email protected]> * Changed error to httpgrpc Signed-off-by: Justin Jung <[email protected]> * Nit Signed-off-by: Justin Jung <[email protected]> * Increment failure metric when token bucket returns error Signed-off-by: Justin Jung <[email protected]> * Simplify token bucket by making Retrieve to always deduct token Signed-off-by: Justin Jung <[email protected]> * Throw 429 and 422 for different failure scenarios Signed-off-by: Justin Jung <[email protected]> * Hide token factors from doc Signed-off-by: Justin Jung <[email protected]> * Simplified config by combining dryrun and enabled Signed-off-by: Justin Jung <[email protected]> * Remove test log Signed-off-by: Justin Jung <[email protected]> * Fix tests Signed-off-by: Justin Jung <[email protected]> * Fix Signed-off-by: Justin Jung <[email protected]> --------- Signed-off-by: Justin Jung <[email protected]>
- Loading branch information
1 parent
42d7327
commit 5356796
Showing
11 changed files
with
625 additions
and
49 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
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
Oops, something went wrong.