In this series / On this page· 7 of 18
Serving in Production
  1. 1. Disaggregated Serving: Dynamo, llm-d, and When Splitting Prefill from Decode Pays
  2. 2. TTFT, ITL, Goodput: Measuring What Users Feel
  3. 3. Benchmark an Inference Server Without Lying to Yourself
  4. 4. Expert Parallelism, and What DeepEP Does for It
  5. 5. Serving Kimi K3.1 Pro: The State per Request, the Indexer's Cost, and Where 1M Tokens Fit
  6. 6. Other Users' Data in the KV Cache: What Cloudflare's GLM-5.3 Incident Teaches Operators
  7. 7. Flow Control in the Serving Stack: What llm-d, Dynamo and AIBrix Do When the Fleet Is Full
  8. 8. Context Parallelism for Long-Context Serving: PCP and DCP in vLLM and SGLang
  9. 9. Several Models, One GPU: Time-Slicing, MPS, MIG, and What CUDA 13.4's Memory Caps Change
  10. 10. Serving Mistral Large 4: What Its Cache Costs and Where It Fits
  11. 11. Prefix-Aware Routing Across Replicas: Kubernetes Service, Dynamo's KV Router, the llm-d EPP and Kinference
  12. 12. Serving Ripple-65B: What a Dense Model with 1M Context Costs, and When It Beats an MoE
  13. 13. Cost per Million Tokens, Computed: GPU-Hours, Utilization, and the Cache
  14. 14. Kinference at alpha.7: What Buoyant's Inference Control Plane Does, and What It Reuses
  15. 15. Splitting Off the Vision Encoder: When Encoder Disaggregation Pays in vLLM
  16. 16. The Cache Hit That Changed the Answer
  17. 17. Prefix Caches That Collapse Under Bursts, and the Session Cap That Prevents It
  18. 18. MLPerf Endpoints v1.0: How to Read an Agentic Inference Benchmark
7 of 18

Flow Control in the Serving Stack: What llm-d, Dynamo and AIBrix Do When the Fleet Is Full

Six llm-d 1.0 flow-control setups on one chat-and-agents overload: chat p95 TTFT from 40.7 s to 4.8 s, the defaults' trap, and how Dynamo and AIBrix differ.

29 min readUpdated

llm-d 1.0, Dynamo 1.6 and AIBrix 0.8 all shipped overload handling in October. llm-d's own flow-control guide warns that its benchmark "does NOT measure QoS slicing across priority classes", which is what the feature is for, so we measured it: one overload of chat users and agent sessions, six llm-d configurations on a simulated fleet, two on real vLLM replicas, and Dynamo's policy queue. Past saturation every request waits somewhere; flow control decides where, in what order, and who gets a 429, and on our simulated fleet the configuration decided whether chat kept a 5-second p95 TTFT or paid 40 seconds.

Versions throughout: llm-d 1.0.0 (router v1.0.0), Dynamo 1.6.1, AIBrix 0.8.0, vLLM 0.32.0.

Past saturation, the queue moves; it doesn't disappear

A full pool can do two things with request N+1: make it wait, or refuse it. Without flow control, the router forwards everything, and the wait forms in each engine's waiting queue (vllm:num_requests_waiting). Once a request sits there, the router can't reorder it, give it to the replica that frees a slot first, or refuse it with a useful status code.

That queue is first come, first served by default. A chat request that lands behind twenty agent turns with 20k-token prefixes waits for their prefill, and its TTFT is whatever the agents' backlog is. vLLM has an engine-side priority (--scheduling-policy priority), and both AIBrix and Dynamo can hand a priority down to it, but it only reorders what one replica already holds.

llm-d's architecture doc is candid about what flow control can do. It "cannot remove wait time when the system is over capacity"; its job is "controlling where and for whom TTFT is accrued" (flow-control.md @ v1.0.0). On our simulated fleet the configured arms completed within 4% of the plain router's agent turns (331 against 344 at 64 sessions); what changed was who waited and who was turned away. The exception was the gate's defaults, which lost a fifth of the turns. If the metrics in this section are new to you, TTFT, ITL and goodput covers them.

The gates in llm-d 1.0

Every request through llm-d's endpoint picker (EPP) passes the same gates, in this order (director.go L219-L316 @ v1.0.0):

A request's path through llm-d 1.0's endpoint picker: classification, the flow-control queue with its bands, fairness, ordering and saturation gate, then the admitter plugins and the scheduler, with each place it can be shed; a thin lane shows the gate-off path straight to the engine queueA request's path through llm-d 1.0's endpoint picker: classification, the flow-control queue with its bands, fairness, ordering and saturation gate, then the admitter plugins and the scheduler, with each place it can be shed; a thin lane shows the gate-off path straight to the engine queue With the gate on, the wait moves from the engine's queue, where nothing reorders it, into the EPP, where bands, fairness and TTLs decide who waits and who gets a 429.

Classification. Each request gets a flow key: a fairness ID and a priority. The fairness ID comes from the x-llm-d-inference-fairness-id header, else from the agent-identity plugin's session attributes, else default-flow. The priority comes from the InferenceObjective named in x-llm-d-inference-objective, else 0. InferenceObjective is a Kubernetes custom resource:

# objectives.yaml (llm-d.ai/v1, the version to author in llm-d-router v1.0.0)
apiVersion: llm-d.ai/v1
kind: InferenceObjective
metadata:
  name: chat-premium
spec:
  priority: 100
  poolRefs:
  - name: qwen3-8b-inference-pool
---
apiVersion: llm-d.ai/v1
kind: InferenceObjective
metadata:
  name: agent-sheddable
spec:
  priority: -10
  poolRefs:
  - name: qwen3-8b-inference-pool

Outside Kubernetes (the file-discovery mode of llm-d's no-Kubernetes guide), the objective reconciler never starts and every request is priority 0 (runner.go L1209-L1222).

Gate off is not priority-blind. With the flowControl feature gate off, the legacy admission path rejects priority < 0 with a 429, without a drop-reason header, as soon as the saturation detector says the pool is saturated, and sends everything else to the engines (admission.go L73-L137). Define a negative objective and you already have load shedding, of the bluntest kind.

Gate on, defaults. Each priority gets its own band on first use; bands are served in strict order; inside a band, one FCFS queue (global-strict-fairness-policy with fcfs-ordering-policy). The utilization-detector decides when the pool is saturated, each band holds up to 5,000 requests or 1 GB (registry/config.go L32-L59), and requests expire after 60 s (controller/config.go L28-L39).

The two detectors. The utilization-detector scores each endpoint as max(waiting / 5, KV usage / 0.8), averages over the pool, and treats metrics older than 200 ms as fully saturated. The concurrency-detector counts in-flight requests (or tokens) against maxConcurrency per replica: immediate, and blind to KV pressure. Set maxConcurrency to the engine's --max-num-seqs and the engines never queue; the queue lives in the EPP.

The ways to be shed. Figure 1 shows where each 429 comes from; the response header x-llm-d-request-dropped-reason names it (rejected-saturated, rejected-ttl-expired, rejected-no-endpoints with a 503), and with enableEviction negative-priority requests can also be evicted in flight (429 evicted). Key your alerts on that header, and count 429s without it separately: the legacy path and the probabilistic admitter set none.

Order matters. The admitter runs after the flow-control queue (director.go L264, then L304), though its README says the opposite. A sheddable request can wait in its band, reach the front, and still be refused.

The configuration we ended with (arm A3 below) adapts the flow-control guide's values: maxConcurrency at the engine's batch size, a 10 s TTL for chat, and the agent band capped at 32 with round-robin across sessions (the guide's global and priority-0 caps dropped).

# arm A3 (llm-d-router v1.0.0); schedulingProfiles trimmed, full file below
apiVersion: llm-d.ai/v1
kind: EndpointPickerConfig
featureGates:
- flowControl
plugins:
- type: queue-scorer
- type: kv-cache-utilization-scorer
- type: prefix-cache-scorer
- type: round-robin-fairness-policy
- type: fcfs-ordering-policy
- type: concurrency-detector
  parameters:
    maxConcurrency: 16          # = the engine's --max-num-seqs
    concurrencyMode: requests
flowControl:
  defaultRequestTTL: "60s"
  saturationDetector:
    pluginRef: concurrency-detector
  priorityBands:
  - priority: 100               # chat-premium
    defaultRequestTTL: "10s"
    fairnessPolicyRef: round-robin-fairness-policy
    orderingPolicyRef: fcfs-ordering-policy
  - priority: -10               # agent-sheddable
    maxRequests: 32             # one full batch per replica (2 x 16)
    defaultRequestTTL: "60s"
    fairnessPolicyRef: round-robin-fairness-policy
    orderingPolicyRef: fcfs-ordering-policy

The full file is epp-config-A3.yaml: without its schedulingProfiles, the EPP builds a default profile with every scorer at weight 1. Clients pick their class with two headers: x-llm-d-inference-objective: chat-premium and x-llm-d-inference-fairness-id: <user or session>.

Measured: one overload, six configurations

Setup. llm-d-router v1.0.0 in a local Kind cluster over two llm-d-inference-sim v1.0.0 replicas, using kind-dev-env.sh from the router repository. The simulator's timing is calibrated from vLLM 0.32.0 serving Qwen3-8B on our test machine (GB10): 305 µs of prefill per uncached token, 73 ms per output token, 16 running requests per replica. Two simplifications matter below. The simulated KV pool is about a million tokens per replica, seven times the real one, so the replicas never queue on KV and their KV usage reads low. And the linear prefill fit, its intercept clamped to zero, overstates an 8k prefill by half (2.5 s against 1.6 s measured).

Load (flowctl_harness.py). Chat: 1.05 requests/s (Poisson), 512-token prompts, 128 output tokens, 32 users each with its own fairness ID, objective chat-premium (priority 100). Agents: 8 to 64 closed-loop sessions, each turn's prompt growing from 8k tokens by 1.5k per turn up to 30k, 256 output tokens, 2 s of think time, one fairness ID per session, objective agent-sheddable (priority -10). A shed agent turn is retried after the think time, so the 429 counts below include retries. Each point: 60 s warm-up, 300 s measured, one run, except three runs per arm at 32 sessions. The prefix growth and think time are ours, informed by the trace in llm-d's turn-priority guide.

Arms. A0: gate off, no objectives (a plain router). A1: gate off, with objectives (legacy shedding). A2: gate on, defaults. A3: gate on, configured as above. A4a: A3 with turn-priority fairness on the agent band. A4b: A3 plus the probabilistic admitter at its defaults.

Two replicas with 16 slots each saturate at 32 sessions: 32 agent turns hold every slot most of the time.

Two panels: chat p95 TTFT and agent p95 TTFT against agent sessions (8, 16, 32, 64) for six arms; A0 and A2 chat curves rise to 41 and 32 s at 64 sessions, A1 to 11 s, A3, A4a and A4b stay near 4.5 sTwo panels: chat p95 TTFT and agent p95 TTFT against agent sessions (8, 16, 32, 64) for six arms; A0 and A2 chat curves rise to 41 and 32 s at 64 sessions, A1 to 11 s, A3, A4a and A4b stay near 4.5 s Configured flow control (A3, A4a, A4b) keeps chat p95 TTFT near 4.5 s from 32 to 64 sessions; the plain router and the gate's defaults let it climb to 41 and 32 s.

At 64 sessions, twice the fleet's capacity (one run per arm; no chat request was refused in any simulated arm):

Arm Chat TTFT p50 / p95 Agent TTFT p95 Agent turns completed Agent 429s (reason)
A0 plain router 34.6 s / 40.7 s 38.6 s 344 0
A1 gate off, objectives 5.5 s / 11.2 s 11.8 s 329 5,023 (no header)
A2 gate on, defaults 16.2 s / 31.5 s 68.6 s 271 2 (TTL)
A3 configured 1.1 s / 4.8 s 43.2 s 331 1,217 (band cap)
A4a + turn-priority 1.0 s / 4.6 s 52.6 s 328 1,179 (cap) + 38 (TTL)
A4b + admitter 1.0 s / 4.4 s 43.4 s 313 1,198 (cap) + 33 (admitter)

At 32 sessions, the edge of saturation, means of three runs (chat p95 varied by about 1 s across runs):

Arm Chat TTFT p50 / p95 Agent TTFT p50 / p95 Agent turns Agent 429s
A0 7.4 s / 12.3 s 7.8 s / 12.6 s 334 0
A1 4.9 s / 8.7 s 4.8 s / 9.7 s 331 494
A2 5.8 s / 10.4 s 7.6 s / 16.3 s 328 0
A3 1.1 s / 4.8 s 5.6 s / 19.1 s 336 0
A4a 1.1 s / 4.5 s 3.5 s / 29.4 s 338 2 (TTL)
A4b 0.8 s / 4.2 s 4.2 s / 18.0 s 320 239 (admitter)

Below saturation (8 and 16 sessions) every arm gives chat a p95 under 0.5 s, and flow control is idle: it only acts on a full pool.

The plain router (A0) makes everyone pay. Chat waits as long as the agents, because both queue FCFS in the engine. In the first run at 32 sessions, the engines held 15 requests waiting on average, the EPP none.

Legacy shedding (A1) cuts chat's wait by refusing agents early: chat p95 from 12.3 to 8.7 s at 32 sessions, from 40.7 to 11.2 s at 64. It rejects every agent request while the pool reads saturated, so 60% of agent attempts got a 429 at 32 sessions and 94% at 64, with no drop-reason header. Chat still waits in the engine queue behind the agents already admitted.

The gate's defaults (A2) lose to legacy shedding at overload. The bands are strict, but the utilization-detector only holds requests once each engine has five waiting, so chat still queues inside the engines behind agents: at 64 sessions chat p95 reached 31.5 s. Agents waited up to the 60 s TTL in the EPP; their p95 of 68.6 s adds the engine queue and the prefill. On a real engine the detector's KV term would trip sooner; on our fleet only the queue term did. A2 also completed 18% fewer agent turns than A3 at 64 sessions; our engine metrics for that point are missing, so we can't say why.

Configured (A3) gives chat a flat p95. With concurrency-detector at the engine's batch size, nothing waits in the engines and everything waits in the EPP: in the first run at 32 sessions the EPP held 9.4 requests on average and the engines 0. Chat goes first, so its wait is only the time until the next slot frees. That is why its p50 is 1.1 s and not the 0.18 s it gets at 8 sessions: without preemption, priority buys the next free slot, not an immediate one. Past saturation, the agent band's 32-request cap does the shedding (rejected-saturated), agents that get in wait at most their TTL in the EPP, and the 10 s chat TTL never fired.

Turn-priority (A4a) trades the agent median for the tail. Serving the deepest session first cut the agent p50 at 32 sessions from 5.6 to 3.5 s and stretched the p95 from 19 to 29 s; the newest sessions are the ones that wait, and a few expired at the TTL. That is the design: the program-aware fairness README bounds how far a new session can overtake at weight × TTL (0.05 × 60 s = 3 turns at the defaults). The plugin is Beta and needs no extra flag.

The admitter (A4b) sheds on KV usage the concurrency detector ignores. At 32 sessions, where A3 refused nothing, it refused 239 agent attempts and completed 5% fewer turns; at 16 sessions, below saturation, it still refused 18. The first gotcha below shows why.

Completed agent turns and 429s per arm at 32 and 64 sessions, the 429s split by drop reason: legacy rejection, band cap, TTL, admitterCompleted agent turns and 429s per arm at 32 and 64 sessions, the 429s split by drop reason: legacy rejection, band cap, TTL, admitter Completed agent turns barely move between arms, except A2 at 64 sessions; the 429s change by an order of magnitude, and so does the reason a client sees.

Read it from the metrics, not only from the client. The signature of the wait having moved is llm_d_epp_flow_control_queue_size{priority="-10"} rising while vllm:num_requests_waiting stays at zero; the reverse, engines waiting with an empty EPP queue, means maxConcurrency is set above the engine's batch. Then llm_d_epp_flow_control_request_queue_duration_seconds tells you how long each band waits, and llm_d_epp_flow_control_requests_total{outcome} how many it dispatched and rejected. They are on the EPP's metrics port (9090), unauthenticated only with --metrics-endpoint-auth=false (otherwise pass a bearer token; on Kubernetes, port-forward the EPP pod first):

curl -s localhost:9090/metrics | grep -E '^llm_d_epp_flow_control_(queue_size|pool_saturation|requests_total)'

warning: The simulator models one thing poorly Its decode time is a linear function of running requests, fitted at 512-token prompts: 73 ms per token at 1 and at 16 requests. On the real engine below, under this mixed load, decode took 180 to 330 ms per token (median per arm and class), because long agent prefills share each step with decode. The simulated ordering is the router's real code; the simulated latencies understate how deep the real overload goes.

Does it hold on a real engine?

Two vLLM 0.32.0 replicas (Qwen3-8B, --max-num-seqs 16, --gpu-memory-utilization 0.30, prefix caching, 141k and 148k KV tokens) on the same machine, behind the EPP and Envoy in file-discovery mode. File discovery means no priorities, so this checks the other half of the mechanism: fairness only, one flow for chat and one for agents, round-robin between them. R0 is the gate off; R1 adds the gate, concurrency-detector at 16 and the default 60 s TTL (config-R1.yaml). One load point, one run per arm, 16 agent sessions (prefixes capped at 16k) plus the same chat rate:

Arm Chat served Chat TTFT p50 / p95 Agent turns Agent TTFT p50 / p95 Waiting in vLLM (mean) Waiting in the EPP (mean)
R0 gate off 314 of 314 93.6 s / 117.6 s 32 62.2 s / 102.4 s 161 0
R1 gate on, fairness 131 of 314 60.4 s / 66.1 s 48 4.6 s / 35.3 s 0.5 61 chat, 0.8 agents

The wait moved, as on the simulated fleet: from 161 requests in vLLM's queues to the EPP. The fleet was far deeper in overload than planned (chat alone was set to 30% of the calibrated capacity, which assumed 73 ms per token), and with the gate on that overload landed on chat: 183 chat requests, 58%, expired at the 60 s TTL (rejected-ttl-expired).

The reason is what round-robin fairness counts. It alternates dispatches between flows that have something queued. The agent flow is closed-loop and rarely holds more than one request, so each agent turn is dispatched at the next free slot; chat's backlog takes what is left. An agent turn with an 11k-token prompt holds a slot many times longer than a chat request, so equal turns per flow gave agents most of the GPU: their median TTFT fell from 62 s to 4.6 s and they completed 50% more turns, while chat lost.

Fairness without priorities protects nobody in particular; it equalizes dispatch counts, whatever each dispatch costs. If you run llm-d without Kubernetes, you have fairness and TTLs but no bands: pick the TTL as the longest wait you'd rather turn into a 429, and consider one fairness ID per chat user against one shared ID for agents, so chat holds most of the flows in the rotation (we did not measure that). With Kubernetes, use the bands.

Dynamo 1.6 and AIBrix 0.8 on the same overload

Three lanes, the same arriving request when every replica is full: llm-d holds it in a band queue and sheds at a cap or TTL with 429; Dynamo holds it in a policy-class queue served by weighted round robin and rejects at the class limit with 529; AIBrix holds nothing at the gateway and returns 429 at the per-replica in-flight capThree lanes, the same arriving request when every replica is full: llm-d holds it in a band queue and sheds at a cap or TTL with 429; Dynamo holds it in a policy-class queue served by weighted round robin and rejects at the class limit with 529; AIBrix holds nothing at the gateway and returns 429 at the per-replica in-flight cap llm-d holds and sheds by strict band, Dynamo holds and shares by weight, AIBrix refuses at a per-replica cap and leaves ordering to the engine.

Dynamo 1.6. Every request passes the router's policy queue, but a class only queues when every eligible worker is over its busy threshold. Classes come from the x-dynamo-meta-policy-class header (a policy family) and the router's uncached-input-length buckets; each class has an FCFS or WSPT heap, a busy threshold, a per-worker queue limit, and a quantum, its share in deficit round robin. The queue key is (strict_priority, due_at, configured_policy_key). Through the frontend, a request over a class's queue limit gets 529, and so does one that finds every eligible worker overloaded (DYN_HTTP_OVERLOAD_STATUS_CODE, http/service/error.rs L20-L29, L75-L77); an expired queue deadline returns 504. The standalone router service maps the same errors to 429 (selection/error.rs L71-L84). The docs are explicit that priority "does not reserve capacity" and does not preempt admitted work (priority-scheduling.md).

# policy-D2.yaml, passed to python -m dynamo.frontend --router-policy-config
default_policy_family: agent
uncached_isl_buckets:
  - min_tokens: 0
    bucket: all
policy_classes:
  - name: chat_all
    policy_family: chat
    cache_bucket: all
    queue_policy: fcfs
    quantum: 4096
    prefill_busy_threshold_frac: 1.0
    request_queue_limit_per_worker: 256
  - name: agent_all
    policy_family: agent
    cache_bucket: all
    queue_policy: fcfs
    quantum: 512
    prefill_busy_threshold_frac: 1.0
    request_queue_limit_per_worker: 16

We ran it on the same harness: the Dynamo 1.6.1 frontend (--router-mode kv --load-aware) over Dynamo's Mocker, a GPU-free engine with its own timing model, four workers at 16 sequences each, in a Linux container on the Mac (dynamo-run.sh). Load: 64 agent sessions on 64 slots, which is llm-d's 32-session point, not its 64, and chat at 2.1 requests/s, the same chat load per worker; one run per arm. D0 has no policy file; D1 two classes at equal quantum; D2 the file above; D3 adds x-dynamo-request-strict-priority: 1 on chat.

Arm Chat TTFT p50 / p95 Agent TTFT p95 Agent turns Waiting in the router (mean) 429 / 529
D0 no policy 17.7 s / 26.6 s 27.9 s 669 0 0
D1 equal quantum 0.5 s / 2.1 s 28.6 s 668 31 0
D2 4096 : 512 0.5 s / 2.1 s 27.9 s 666 31 0
D3 D2 + strict chat 0.5 s / 2.4 s 28.5 s 667 31 0

The Mocker's latencies are its own, so compare the rows with each other, not with llm-d's tables. Without a policy file nothing waits in the router and chat queues in the workers behind agents, as with llm-d's plain router. With one, about 31 requests wait in the router, chat p95 drops from 26.6 s to about 2 s, and agent p95 TTFT and completed turns stay within 3% of D0. D3's 2.4 s against D2's 2.1 s is within run-to-run noise.

The weights changed nothing, and the reason is the unit. Dynamo's round robin charges each request its uncached prompt tokens (scheduling_cost = max(1, uncached_tokens), deficit-round-robin.md). The result is consistent with that unit: at equal quantum a 512-token chat request is cheap next to an agent turn, so chat gets several dispatches per agent dispatch, and raising its weight further has nothing left to fix. The mechanism is the opposite of llm-d's round-robin fairness, which counts dispatches whatever they cost. No class reached its queue limit, so we saw neither a 429 nor a 529.

Update, 8 November 2026: our Dynamo runs used --load-aware, which in 1.6.1 turns off KV events and every KV-reuse assumption. The router saw no cached prefix, so it charged each agent turn its whole prompt, about 20k tokens, not the 1.5k-token increment of a warm turn, as we first wrote. The gap between chat and agent turns was wider, and the conclusion stands. For prefix-aware routing, run plain --router-mode kv without --load-aware.

Weighted shares by token never starve the agent class; strict bands can. Pick by whether agents may stall.

AIBrix 0.8. No gateway queue. requestsInflight caps in-flight requests per replica and returns 429 with x-error-model-replica-inflight-exceeded; requestsPerSecondPerReplica caps the rate (gateway_inflight.go, gateway plugins docs). Priority is opt-in (AIBRIX_PRIORITY_TIER_ENABLED) and engine-side: the x-aibrix-priority-tier header (batch → 100, background → 1000) is written into the vLLM request's priority, which only takes effect with --scheduling-policy priority and only de-prioritizes, since vLLM serves smaller values first (gateway_req_priority.go L29-L39). We did not run AIBrix: it needs its gateway control plane on Kubernetes; this is from the source at v0.8.0.

llm-d 1.0.0 Dynamo 1.6.1 AIBrix 0.8.0
Where the excess waits EPP band queues (gate on); engine queue (gate off) Router policy-class queue, once every eligible worker is busy Nowhere at the gateway: refused at the cap, else the engine queue
Between classes Strict priority bands (InferenceObjective) Weighted deficit round robin (quantum); strict_priority tier first None at the gateway; engine priority via the tier header
Within a class Fairness policy (global-strict, round-robin, program-aware), then ordering (FCFS, EDF, SLO deadline) FCFS or WSPT, due_at first Engine FCFS or priority
Shed, status Band or global cap 429; TTL 429; empty pool 503; admitter 429; eviction 429 Class queue limit or pool overloaded 529; queue deadline 504; no workers 503 In-flight cap 429; RPS limit
Priorities need Kubernetes Yes (CRDs) No (headers) The gateway runs on Kubernetes
Watch llm_d_epp_flow_control_queue_size, _pool_saturation, _requests_total{outcome} dynamo_frontend_router_queue_pending_requests Gateway logs, vLLM queue metrics

Gotchas

The probabilistic admitter refuses everything at a quarter of the KV cache. It sheds priority < 0 with probability min(sat^5 × 300, 1), where sat averages max(waiting / 5, KV usage / 0.8) over replicas (plugin.go L137, L149-L162). That reaches 100% at sat = (1/300)^(1/5) = 0.32 (its README says 0.34), and with empty engine queues 0.32 is a mean KV usage of 25.6%. On our real replicas (141k tokens of KV each), eight 11k-token agent turns already fill 62% of the cache. Even on the simulated fleet, with a pool seven times larger and mean KV usage at 19%, the admitter refused 43% of agent attempts at 32 sessions, more than the curve gives at the mean, because saturation fluctuates and the curve is steep. Its refusals carry no drop-reason header. Raise kvCacheUtilThreshold or lower k before you enable it.

The admitter's shed probability against saturation for k = 100, 300 and 1000 at power 5, with a second axis in KV usage at empty queues; the default curve reaches 100% at saturation 0.32, KV usage 25.6%The admitter's shed probability against saturation for k = 100, 300 and 1000 at power 5, with a second axis in KV usage at empty queues; the default curve reaches 100% at saturation 0.32, KV usage 25.6% At the defaults the admitter is a dead zone then a cliff, and the cliff sits at a quarter of the KV cache.

The gate alone buys a minute of waiting, not protection. Defaults keep the utilization-detector, so engines queue before the EPP holds anything, and the agent band can hold 5,000 requests for 60 s each. Set concurrency-detector at the engine's batch size, a band maxRequests, and TTLs below your client's timeout, or the 429 arrives after the client has given up.

The route can time out before the TTL. The HTTPRoute in llm-d's Kind dev setup cuts a request at 30 s, shorter than a 60 s TTL plus a 30k-token prefill; our first runs lost streams to it until we raised it to 900 s. Set the gateway's timeout above the longest TTL plus the longest generation.

No CRDs, no priorities. In file-discovery mode every request is priority 0. priorityBands load without error, nothing lands outside band 0, and x-llm-d-inference-objective silently does nothing.

Stale metrics stop dispatch. With the utilization-detector, an endpoint whose metrics are older than 200 ms counts as saturated. Lose the scrape path and the EPP holds everything until requests expire at their TTL. Watch llm_d_epp_flow_control_stale_endpoints, or use the concurrency-detector.

Self-asserted priority is an abuse vector. A client that can set x-llm-d-inference-objective or Dynamo's x-dynamo-request-strict-priority can promote itself. Strip those headers at the gateway and set them from authenticated identity.

Verdict

Turn llm-d flow control on when two classes share a pool and the engines' waiting queues are non-zero at peak; below saturation it changes nothing. Turn it on configured, not with the gate's defaults: concurrency-detector at the engine's --max-num-seqs, a negative-priority band with maxRequests about one batch per replica and a TTL under the client timeout, and a fairness ID per agent session. On our simulated overload that kept chat p95 TTFT at 4.8 s where the plain router gave 40.7 s and the defaults 31.5 s, with agent throughput within 4%. Add turn-priority if the deepest sessions' turns matter more than the newest sessions' wait (our agent p50 fell from 5.6 to 3.5 s and the p95 rose from 19 to 29 s; llm-d's own H200 benchmark reports 17 of 200 sessions finished against 0 under FCFS). Leave the probabilistic admitter off until you've tuned its KV threshold.

Choose the stack by contract. llm-d when chat must win strictly and you run Kubernetes. Dynamo when you want classes without CRDs and a guaranteed share for agents: its token-priced round robin protected chat at equal weights. AIBrix when a per-replica cap and engine-side de-prioritizing are enough and you want no router queue.

Next: disaggregated serving splits off the prefill these agent prefixes pay for, and KV cache exposure covers what a shared prefix cache leaks between the sessions we just queued.

Sources

  1. Inference EnginesEngines Built for a Few Models: What Coding Agents Changed, and What to Trust
  2. Building with AIQwen3.8's Attempted Upload to Beijing: What Cohere Found, What Self-Hosted Agents Need
  3. Building with AIA 27B Model as Your Local Agent: What It Can and Can't Do

Inference Notes

Once a week: what changed in serving AI models, and what it means if you build, run or pay for them, in about five minutes.

Read past issues