Expand description
Kafka quota-entity precedence and quota bucket debt accounting.
Structs§
- User
Client Quota Facts - Presence of each canonical user/client quota candidate, in Kafka’s precedence order.
Enums§
- IpQuota
Precedence - Selected IP quota candidate.
- Quota
Candidate Presence - Whether one canonical quota candidate exists in the metadata image.
- User
Client Quota Precedence - Selected user/client quota candidate, in Kafka’s precedence order.
Functions§
- ip_
quota_ precedence - Select an exact IP quota before the IP default.
- quota_
charge - Charge the effective micro-token request in full, retaining its unpaid
portion as debt up to
debt_cap. - quota_
credit - Credit micro-tokens to a quota bucket, repaying debt before filling its balance.
- quota_
debt_ cap - Greatest representable whole micro-token debt earned during this wait.
- quota_
refill - Credit elapsed nanoseconds at a micro-token rate, retaining the fractional micro-token numerator.
- quota_
whole_ request - Convert a whole-token request to storage units, limited by the whole tokens the balance holds.
- user_
client_ quota_ precedence - Select Kafka’s first present user/client quota candidate.