Chat about this article with your favourite AI tool
Databricks has detailed a new overload-protection system, Adaptive Admission Control (AAC), that the company says keeps one customer’s traffic surge from degrading service for everyone else on its shared platform. In one production comparison, availability for non-offending tenants rose from 91.43% to 99.79%, according to Databricks.
The company said p90 latency for those tenants fell from 327 ms to 52 ms. The comparison covered two similar overload incidents on the same early-path service, one before AAC was enabled and one after. Both were driven mainly by excess traffic from a single tenant.

Why rate limits fell short
Databricks runs hundreds of microservices serving thousands of tenants. It already uses distributed rate limiting as a first line of defence, but said predefined limits cannot react to the real-time health of an individual server replica.
Static limits count requests rather than the work they cause, the company explained. One expensive query can use as much CPU and memory as many cheap metadata lookups. A limit tight enough to stop expensive bursts rejects cheap traffic needlessly, while a looser one lets a few heavy requests overload a server.
Capacity also shifts. Garbage collection pauses, CPU throttling, a degraded node or a slow downstream dependency can shrink what a replica can handle, and a fixed limit cannot follow. Requests then queue, clients retry and the slowdown spreads to dependent services.

How AAC works
AAC is built into Databricks’ unified RPC framework and sits in the inbound request path. For each request it decides whether to admit it, queue it or reject it. Databricks said it needs no service-specific configuration, so owners do not have to tune thread pools, concurrency limits or queue sizes.
Four components do the work:
- Hiccup Sampler: a background thread that measures JVM scheduling delays every few milliseconds. A control loop lowers the concurrency limit when delays rise and raises it when the process is healthy and nearing its limit.
- Admission Controller: a semaphore-like component that enforces the current limit.
- Load Shedding Controller: queues requests that cannot be admitted at once, ranking them by the tenant’s recent and active load and the request’s traffic priority.
- Request Scoped Executor: a single-threaded executor for each admitted request, which keeps thread usage in line with the concurrency limit.
When a permit frees up, it goes to the tenant that has consumed the least capacity recently rather than to the oldest request. Queued requests that wait too long are rejected, and borrowing from the CoDel algorithm, the timeout shortens when the queue has not drained recently.
Fairness is currently tracked by the combination of RPC method and tenant ID, an identity Databricks said can be extended without changing the algorithm. Throttling only happens when a server is unhealthy, so a healthy server does not limit heavier tenants.
Scaling up as well as down
Databricks also described a traffic spike against a single API endpoint of a critical service. Because the pods stayed healthy, AAC raised the maximum concurrency from about 100 to 750 requests per pod. Active concurrency passed 300 requests per pod without unnecessary rejections, the company said, while pod latency stayed low and unrelated endpoints kept working normally.
Under the previous static ceiling, the server would have started rejecting traffic once active requests hit the limit, Databricks said.
Where it runs
AAC is on by default for JVM services, including those behind Model Serving, AI Gateway and Genie. Databricks said it has recently extended AAC to Rust, Go and Python services, such as those powering AI Functions.
The company said the design draws on work from LinkedIn, Netflix, Amazon, WeChat and Meta, and noted that Uber’s Cinnamon independently reached a similar adaptive load-shedding architecture.
Source: Databricks Blog

