-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Engines - Server Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The stats currently reported by this type make assumptions about the use cases built on top of it (notably IngressRequestRateLimiter, SessionEstablishmentRateLimiter, and FlowControlRateLimiter). PALI uses the rate limiter for traffic shaping, tracking bytes instead of admissions which is a new and different use case. This ticket covers the following work:
- Refactor admission::RateLimiter::Stats to be written in terms of "tokens," rather than "admissions"
- Remove admission::RateLimiter::appendStats (we will never have a raw rate limiter that appends stats), and move the BSONObj building code up to the explicit users of the rate limiter (no reported stats changes here).