Skip to navigation

Admission Control Architecture

Protect serving capacity and govern how competing requests share it.
View as MarkdownOpen in Claude

NVIDIA Dynamo admission control aims to preserve useful service under load and govern how competing requests share capacity.

For deployment instructions, see Admission Control on Kubernetes.

Goal

Admission control protects goodput and quality of service (QoS) by deciding which requests to admit, delay, or reject before they consume engine capacity.

Goodput:

  • Useful throughput: sustain the rate of successful requests that meet their service-level objectives (SLOs).
  • Overload protection: bound concurrent work and backlog so excess demand does not overwhelm serving resources.

Quality of service (QoS):

  • Priority: favor requests according to the provider’s priorities and service objectives when capacity is contested.
  • Fairness: share capacity among competing request classes according to provider-defined shares, preventing one class from monopolizing service.

The graph illustrates the goodput goal: useful work should remain near sustainable capacity as demand grows.

Conceptual goodput curves: admission control sustains a plateau as offered load grows, while overload erodes goodput without it.

This graph illustrates the goal; it is not benchmark data or a guarantee for every workload. The backend gate provides local capacity protection; priority and fairness policies across request classes are planned at the router.

Backend

Backend admission control supports both Dynamo Python and Dynamo Sidecar backends. Each worker has its own gate, including separate prefill and decode workers in a disaggregated deployment. All endpoints of a worker share its gate.

Request Flow

The gate keeps excess work outside the engine using two limits and a bounded first-in, first-out (FIFO) queue:

LimitWhat it controls
Engine request limitHow many requests can be at the engine from admission until they finish.
Engine request waiting limitHow many admitted requests can still be waiting for their first generated token or completion.

A new request enters the engine immediately only when both limits have room and its queue is empty. Otherwise, it waits in the queue without using engine capacity. As capacity becomes available, the gate admits the oldest queued request that fits. When the queue is full, the gate rejects new requests before they reach the engine.

Yes No; queue has space No; queue is full Oldest eligible request,once both limits have room First token or completion Request finishes Request arrives at backend Both engine limits have roomand its queue is empty? Backend engine Bounded FIFO queue Reject before engine admission Waiting capacity available Request capacity available

Waiting ends at the first generated token or completion, whichever comes first, for every worker. A request can complete without generating a token. Once waiting ends, the request still counts toward the engine request limit until its response stream ends. Interim metadata does not end the wait.

Cancelled queued requests are removed and free their queue space. Requests that finish, fail, or are cancelled at the engine free their remaining capacity. The gate does not preempt engine work or enforce a queue waiting-time limit.

Data-parallel ranks. Each data-parallel (DP) rank has its own limits and FIFO queue. A request with a specified, recognized rank uses that rank’s queue and limits. A busy rank does not prevent another rank with available capacity from admitting work.

Requests without a specified or recognized rank use a shared queue and draw from the combined capacity of all ranks. They do not get extra capacity or count against every rank. Ranked requests must fit both their own rank’s limits and the remaining combined capacity; unranked requests need only fit the combined capacity. These rules apply to both engine limits and queue space, so ranked and unranked requests can hold each other back when the worker’s combined capacity is full.

Rejection scope. Every rejection reaches the client as an overload, HTTP 529 by default. When the worker could still admit or queue other requests, such as requests for another rank, the rejection names the rejected request’s rank, and the Frontend keeps routing new requests to the worker. When the worker could neither admit nor queue any request, the rejection applies to the whole worker, and the Frontend stops routing new requests to it for up to one second. Rejections of unranked requests always apply to the whole worker.

Configuration

Backend admission control is disabled by default. To enable it, apply the recommended starting limits, then tune them to your traffic shape and SLOs.

Set these on the backend worker. All values apply per DP rank; the worker’s total capacity is the combined capacity of its ranks. Restart the worker to change a setting.

SettingEnvironment variableAlso configured byDefault
Engine request limitDYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT--engine-request-limit; alias DYN_ENGINE_REQUEST_LIMITUnset: unlimited
Engine request waiting limitDYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMITAlias DYN_BACKEND_ADMISSION_ENGINE_WAIT_LIMITUnset: unlimited
Request queue limitDYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMITAlias DYN_DYNAMO_REQUEST_QUEUE_LIMIT0: no queue. A positive queue limit requires at least one engine limit; otherwise, worker startup fails.

Both engine limits accept positive integers. The queue limit accepts non-negative integers; 0 disables queueing, so requests that cannot enter immediately are rejected.

Setting either engine limit enables admission control. An engine limit left unset stays unlimited, but the gate still reports its occupancy. With both engine limits unset, the gate is disabled: requests pass straight to the engine, and existing engine and transport behavior governs them.

An explicit --engine-request-limit takes precedence over environment variables. Each canonical variable takes precedence over its alias. Invalid environment values log a warning and fall back to the next source; an invalid CLI value fails startup.

Until the engine reports its ranks, the gate assumes one rank and handles all requests as unranked.

Best Practices

Enable admission control with engine-based starting limits. Set the three limits below using the engine’s max_num_seqs (may be found in the worker log):

SettingStarting value per DP rank
DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMITmax_num_seqs
DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMITmax_num_seqs
DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT2 × max_num_seqs

These settings keep excess work outside the engine once it holds max_num_seqs requests, with a queue to absorb bursts. Increasing either engine limit does not increase the engine’s batch capacity.

Set the queue limit together with the engine limits. The queue limit defaults to 0. If you set an engine limit and leave the queue at 0, the worker rejects every request that does not fit under that limit at once, with no waiting at the gate.

Tune from there for your workload and SLOs. Use the request limit to bound ongoing work, including requests already streaming, and the waiting limit to bound work still awaiting a first token or completion; size the waiting limit with Little’s law, as described below. A deeper queue absorbs longer bursts at the cost of longer waits; the gate does not reject requests based on how long they have waited. Validate each change under representative load, watching goodput and latency.

Size the waiting limit with Little’s law

Little’s law relates average occupancy, arrival rate, and time spent in a stage:

L = C × W

For the engine waiting stage, L is the average number of waiting requests, C is the admission rate in requests per second, and W is the mean time in seconds from admission to the first generated token or completion.

Measure a warmed-up worker at the highest steady load that meets your latency SLO. The gate reports occupancy only while it is enabled, so during this calibration set an engine limit high enough that the gate does not constrain admission, and confirm there is no gate queueing or rejection. Measure prefill and decode workers separately.

For one worker and one known dp_rank, use the same steady interval to measure:

  • L: the time average of dynamo_backend_admission_engine_request_waiting_count.
  • C: the rate of dynamo_backend_admission_request_admit_total, summed across source="direct" and source="queue".

Then L / C estimates W. This window includes engine queueing and downstream prefill waits after admission, but excludes the gate queue and earlier upstream processing. Frontend TTFT therefore measures a different window. Use a run with negligible failures and cancellations, since those also release waiting capacity. The result is a mean, not a median or percentile.

Round C × W up to get an initial candidate for DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT—equivalently, round the measured L up. For example, 50 requests/second with a mean wait of 0.24 seconds gives 12 waiting requests on average. Validate that candidate under representative load and bursts: a hard limit at the average occupancy can reduce throughput, and the mean does not bound tail latency. Adjust while checking goodput and latency percentiles.

For multi-rank workers, dp_rank="unspecified" does not reveal how the engine distributes those requests across ranks, so it cannot provide a per-rank sizing estimate.

Metrics

Each worker exposes the following metrics. In the Labels column, dp_rank is the rank ID, such as "4", or "unspecified" for unranked requests.

MetricTypeLabelsMeaning
dynamo_backend_admission_engine_request_countGaugedp_rankRequests admitted to the engine that have not finished.
dynamo_backend_admission_engine_request_waiting_countGaugedp_rankAdmitted requests still awaiting their first generated token or completion.
dynamo_backend_admission_request_queue_countGaugedp_rankRequests waiting outside the engine in gate queues.
dynamo_backend_admission_request_receive_totalCounterdp_rankAll requests received by the gate, counted once regardless of outcome.
dynamo_backend_admission_request_admit_totalCounterdp_rank, source="direct" or source="queue"Requests passed into the engine, directly or after queueing.
dynamo_backend_admission_rejection_totalCounterdp_rankRequests the gate could neither admit nor queue.
dynamo_backend_admission_cancellation_totalCounterdp_rankRequests cancelled before engine admission.

Each request is counted under one dp_rank value. Sum across all values, including unspecified, for worker totals. The gate counts requests only while admission control is enabled; while it is disabled, these metrics stay at zero.

Compare engine and queue counts with their configured limits to identify where work accumulates. Watch admission and rejection rates alongside client-visible goodput when tuning under load.

Router

Router policies for SLO-aware admission, priority, and fair sharing across request classes are planned for future work.