Admission control: decide whether to accept work before overload
Admission control decides before execution whether to accept, queue, or reject work based on current capacity and policy. Unlike a request-rate limit, it can consider concurrent work, resource pressure such as CPU or memory, and request priority. The aim is to keep admitted work within service capacity while protecting important work from starvation.
Admission control decides before execution whether to accept, queue, or reject work based on current capacity and policy. Unlike a request-rate limit, it can consider concurrent work, resource pressure such as CPU or memory, and request priority. The aim is to keep admitted work within service capacity while protecting important work from starvation.
A different question from rate limiting
Rate limiting caps requests or data over a time window. Admission control asks, “Is it safe to accept this work now?” Two requests per second can have very different costs: a cache lookup and a large search query are not equivalent. Even a modest request rate can exceed concurrency or memory limits when jobs run for a long time. Google SRE notes that QPS alone can be a poor proxy for resource use.
Possible outcomes include immediate execution, bounded queuing for a brief burst, or rejection/load shedding when capacity is unavailable. Always bound both queue length and wait time; retries must not immediately flood the service again.
Build the policy
**Choose resources and cost signals:** Identify the actual bottleneck: CPU, memory, connections, execution slots, or a downstream queue. If work varies widely, use estimated cost or concurrency “seats” rather than raw request count, and calibrate estimates with observations.
**Set fairness and priority:** Classify users, tenants, or flows so one noisy source cannot starve independent work. Distinguish work that must run from work that can be delayed or shed, and verify low-priority work still makes progress.
**Budget the queue:** Derive queue capacity from memory and a latency budget. Under a simplified steady service rate `μ`, `Q` queued jobs take about `Q/μ` to clear. This is only an estimate; variable service time, parallelism, and priorities change it.
**Define overload signals and actions:** Monitor resource utilization, queue depth, latency, and rejection rate. At chosen thresholds, reduce new admissions or reject/degrade selected work. Validate thresholds and recovery under load; delayed signals may react only after overload begins.
**Plan failure, recovery, and observability:** Define whether admission control allows or rejects work if the controller itself fails. Track accepted, queued, and rejected work, queue wait, and resource use together.
Kubernetes API Priority and Fairness example
Kubernetes API Priority and Fairness (APF) classifies API requests with FlowSchemas and assigns concurrency limits by priority level. It also uses fair queuing and bounded queues to absorb brief bursts. Kubernetes documents APF as Stable since v1.29 and enabled by default. Depending on queue and concurrency settings, overload can add latency or return HTTP 429. Metrics include queued and rejected requests and wait duration.
This is an example, not a configuration to copy into every web service. Incorrect classification can starve important flows. Some long-running request types are not subject to APF, so check the target platform's documentation.
Verification
In a test environment, observe normal load, a brief burst, accumulated long-running work, competition across priorities, a full queue, and delayed resource signals. Write down expected execution/queue/rejection outcomes and metrics first, then verify recovery when pressure falls. No cluster or load test was run for this article.
Sources
[Kubernetes API Priority and Fairness](https://kubernetes.io/docs/concepts/cluster-administration/flow-control/)
[Envoy Overload Manager architecture](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/overload_manager)
[Google SRE Book: Handling Overload](https://sre.google/sre-book/handling-overload/)