Skip to main content

Module quota

Module quota 

Source
Expand description

Kafka quota-entity precedence and quota bucket debt accounting.

Structs§

UserClientQuotaFacts
Presence of each canonical user/client quota candidate, in Kafka’s precedence order.

Enums§

IpQuotaPrecedence
Selected IP quota candidate.
QuotaCandidatePresence
Whether one canonical quota candidate exists in the metadata image.
UserClientQuotaPrecedence
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.