You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prevent failed ingestion from affecting rate limiting in distributor. (cortexproject#3825)
* Prevent failed ingestion from affecting rate limiting in distributor.
Change the handling of the rate limiting in the distributor such that when the ingestion fails, the reservation in the rate limiter is canceled, returning the tokens for future use in the proceeding requests.
Signed-off-by: Steve Simpson <[email protected]>
* Spelling and typos.
Signed-off-by: Steve Simpson <[email protected]>
* Change Reservation to an interface to avoid extra allocation.
Signed-off-by: Steve Simpson <[email protected]>
* Return nil on failure in AllowN.
Signed-off-by: Steve Simpson <[email protected]>
* Rename unit test helper OK to isOK.
Signed-off-by: Steve Simpson <[email protected]>
* Review suggestions.
Signed-off-by: Steve Simpson <[email protected]>
0 commit comments