Right now, the RateLimiter won't return the "borrowed" tokens back to the bucket if it ultimately rejects the connection due to exceeding the maxQueueDepth, which will result in overly-pessimistic rejection once we've hit the max queue depth. We should modify the rate limiter to ensure that only tokens that will be used are taken/kept out of the bucket.
RateLimiter should return tokens to bucket upon rejection
- Assignee:
-
Erin McNulty
- Reporter:
-
Erin McNulty
- Votes:
-
0 Vote for this issue - Watchers:
-
6 Start watching this issue
- Created:
- Updated:
- Resolved: