> This page is for version v1.7.0.
> For other versions, use one of these documentation indexes:
> - Latest (v1.6.2) (default): https://docs.nvidia.com/dynamo/latest/llms.txt
> - dev: https://docs.nvidia.com/dynamo/dev/llms.txt
> - v1.6.2: https://docs.nvidia.com/dynamo/v1.6.2/llms.txt
> - v1.7.0: https://docs.nvidia.com/dynamo/v1.7.0/llms.txt
> - v1.6.1: https://docs.nvidia.com/dynamo/v1.6.1/llms.txt
> - v1.6.0: https://docs.nvidia.com/dynamo/v1.6.0/llms.txt
> - v1.5.1: https://docs.nvidia.com/dynamo/v1.5.1/llms.txt
> - v1.5.0: https://docs.nvidia.com/dynamo/v1.5.0/llms.txt
> - v1.4.2: https://docs.nvidia.com/dynamo/v1.4.2/llms.txt
> - v1.4.1: https://docs.nvidia.com/dynamo/v1.4.1/llms.txt
> - v1.4.0: https://docs.nvidia.com/dynamo/v1.4.0/llms.txt
> - v1.3.0: https://docs.nvidia.com/dynamo/v1.3.0/llms.txt
> - v1.2.1: https://docs.nvidia.com/dynamo/v1.2.1/llms.txt
> - v1.2.0: https://docs.nvidia.com/dynamo/v1.2.0/llms.txt
> - v1.1.1: https://docs.nvidia.com/dynamo/v1.1.1/llms.txt
> - v1.1.0: https://docs.nvidia.com/dynamo/v1.1.0/llms.txt
> - v1.0.2: https://docs.nvidia.com/dynamo/v1.0.2/llms.txt
> - v1.0.1: https://docs.nvidia.com/dynamo/v1.0.1/llms.txt
> - v1.0.0: https://docs.nvidia.com/dynamo/v1.0.0/llms.txt
> - v0.9.1: https://docs.nvidia.com/dynamo/v-0-9-1/llms.txt
> - v0.9.0: https://docs.nvidia.com/dynamo/v-0-9-0/llms.txt
> - v0.8.1: https://docs.nvidia.com/dynamo/v-0-8-1/llms.txt
> - v0.8.0: https://docs.nvidia.com/dynamo/v-0-8-0/llms.txt
> - v0.7.1: https://docs.nvidia.com/dynamo/v-0-7-1/llms.txt
> - v0.7.0: https://docs.nvidia.com/dynamo/v-0-7-0/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://docs.nvidia.com/dynamo/llms.txt. For full content including API reference and SDK examples, see https://docs.nvidia.com/dynamo/llms-full.txt.

# Admission Control

Backend admission control limits requests inside each engine and queues excess work outside it.
Configure the gate on the worker containers in your DynamoGraphDeployment (DGD). It supports both
Dynamo Python and Dynamo Sidecar backends.

For behavior and tuning guidance, see
[Admission Control Architecture](/dynamo/v1.7.0/knowledge-base/concepts/fault-tolerance/admission-control-architecture).

## Configure the Worker

Start with a working [DynamoGraphDeployment](/dynamo/v1.7.0/reference/api/kubernetes/dynamo-graph-deployment).
These three settings apply **per data-parallel (DP) rank**:

| Environment variable | What it limits | Default per rank |
|---|---|---|
| `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT` | Admitted requests that have not finished. | Unset: unlimited |
| `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT` | Admitted requests awaiting their first generated token or completion. | Unset: unlimited |
| `DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT` | Requests waiting outside the engine. Set `0` to disable queueing. A positive queue limit requires at least one engine limit; otherwise, worker startup fails. | `0`: no queue |

Setting either engine limit enables admission control; an engine limit left unset stays unlimited.
When either engine limit is reached, new requests wait in the gate queue. If the queue is full, the
worker rejects them; overload reaches the client as HTTP 529 by default.

The following `nvidia.com/v1beta1` fragment enables admission control with the recommended starting
limits for an engine whose `max_num_seqs` is 256: each engine limit at `max_num_seqs`, and a queue of
twice that. Add these entries to your worker container's existing `env` list.

```yaml
spec:
  components:
    - name: worker
      type: worker
      podTemplate:
        spec:
          containers:
            - name: main
              env:
                - name: DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT
                  value: "256"
                - name: DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT
                  value: "256"
                - name: DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT
                  value: "512"
```

For a disaggregated deployment, configure prefill and decode workers separately. Set these variables on
the workers, not the frontend. See
[Configuration](/dynamo/v1.7.0/knowledge-base/concepts/fault-tolerance/admission-control-architecture#configuration)
for CLI precedence and aliases, and
[Best Practices](/dynamo/v1.7.0/knowledge-base/concepts/fault-tolerance/admission-control-architecture#best-practices)
for tuning from the starting limits.

## Verify the Configuration

Check the worker logs for the effective limits. Under load, use the `dynamo_backend_admission_*`
metrics to observe engine occupancy, queued requests, rejections, and cancellations. These metrics
stay at zero while admission control is disabled. The `dp_rank` label identifies the rank;
`unspecified` covers unranked requests. Sum over `dp_rank` for worker totals.

See [Metrics](/dynamo/v1.7.0/knowledge-base/concepts/fault-tolerance/admission-control-architecture#metrics)
for metric names and labels.