llm-d v1.0: The Inference Queue Moved Into the Router — aniketkarneai.com | aniketkarneai.com
Wednesday, November 11, 2026 Field notes on autonomous systems ● Amsterdam, NL
daily

llm-d v1.0: The Inference Queue Moved Into the Router

llm-d hit 1.0 on October 20 with a three-tier dispatch queue inside the Endpoint Picker, agent-aware serving, and a warning about its own fail-open default that most operators will skip.

The line that stopped me wasn’t in the blog post. It was in a callout box near the bottom of the flow-control documentation, under a heading about failure modes, framed as a caveat about what happens once the EPP is no longer reachable. The default llm-d router recipe sets failureMode: FailOpen, which means that if the Endpoint Picker crashes, Envoy routes around it and sends the request straight to a model server anyway. No queuing, no fairness, no saturation gate. The entire mechanism described in the preceding fifteen pages simply stops existing, and traffic keeps flowing.

I read it twice, then went looking for whether that was a bug, a transition artifact, or a considered trade. It appears to be the third one, and the reasoning is sound. But it’s also the most consequential sentence in the release, and it’s the opposite of where the reader’s attention goes.

Let me back up, because the interesting part is how that line got there.

What shipped

llm-d v1.0.0 landed on October 20, announced from the PyTorch Conference. The repo has been around since April 2025, founded by Red Hat, IBM, Google Cloud, CoreWeave, and NVIDIA, and now sits as a CNCF Sandbox project with something like 500 contributors across 25-plus organizations and roughly 4,956 stars. Twelve tagged releases since v0.3.0, with v1.0.0 as the graduation point. Apache-2.0 throughout.

Google’s framing of why the release matters lands on a workload shift rather than a feature list, and it’s the right framing. A year ago most traffic was chat: one prompt in, one response out. Now the traffic is multi-step agents and RL rollouts that fan out across tools, share long prefixes, and arrive in bursts. Google’s own demo was 1,000 sandboxed agents on Agent Substrate on GKE hitting a single llm-d endpoint across vLLM, SGLang, and a mixed fleet of TPUs and GPUs.

Bursty is the operative word. A round-robin load balancer was built for a world where request cost is roughly constant. In LLM serving, cost is driven by input context length and the autoregressive decode loop, and those vary by orders of magnitude between two requests that arrive in the same millisecond. RPS limits either starve the pool by being conservative or trigger overload by being aggressive. There is no setting that makes them correct.

Why queuing at the GPU doesn’t work

The llm-d docs name four failure modes that show up once you serve LLM traffic through a generic gateway, and they’re worth reading as a list because each one maps to a specific design decision in the fix.

Noisy neighbor — one tenant sending massive prompts monopolizes an endpoint’s KV cache and local queue, starving everyone else.

Scheduling regret — once a request is dispatched into a model server’s local queue, the EPP can’t move it. The routing decision was made on stale information, and the request is locked into a suboptimal candidate even if a better one frees up a hundred milliseconds later.

Priority inversion — model servers batch by arrival time or sequence length, not by business priority. Your latency-critical chat request sits behind an offline batch job.

Resource asymmetry — one request with a 500k-token context can consume more resources than hundreds of short requests combined.

That last one is the reason RPS is structurally wrong here, and it’s worth dwelling on. Rate limiting assumes resource consumption is proportional to request count. It isn’t. A rate limiter that admits 100 requests a second can be looking at 10k tokens or 50 million depending on what’s in them. You cannot express “admit work up to the point where KV cache saturates” as a requests-per-second number.

llm-d’s answer is to move the queue. Instead of letting requests pile up in per-endpoint local queues where they can neither be reordered nor re-routed, the EPP holds them centrally in policy-aware queues and makes the routing decision as late as possible. That’s what the docs call dynamic late binding, and it’s the mechanism that addresses scheduling regret directly: the choice of endpoint happens at dispatch time, not at admission time.

The three-tier dispatch

Every request that enters Flow Control gets a FlowKey, which is a tuple of (FairnessID, Priority). The FairnessID comes out of the x-llm-d-inference-fairness-id header — typically a tenant ID. The Priority is derived from an InferenceObjective resource. Each unique FlowKey maps to its own in-memory queue, and all queues sharing an external priority value form a Priority Band.

Dispatch then walks a fixed three-tier ladder:

  • Tier 1 is priority band selection, hardcoded and not pluggable. Highest band first, always.
  • Tier 2 is fairness policy selection, which decides which tenant within that band goes next. round-robin-fairness-policy cycles through active flows; global-strict-fairness-policy ignores isolation entirely and serves a single global order.
  • Tier 3 is ordering policy within the selected flow’s queue. fcfs-ordering-policy is the default, edf-ordering-policy goes by deadline, and slo-deadline-ordering-policy computes a deadline from the x-llm-d-slo-ttft-ms header.

Wiring it up looks like this on the client side:

curl -X POST http://${IP}:${PORT}/v1/completions \
  -H 'Content-Type: application/json' \
  -H 'x-llm-d-inference-fairness-id: tenant-a' \
  -H 'x-llm-d-inference-objective: premium-traffic' \
  -d '{"model": "default-model", "prompt": "Say hello"}'

And on the router side, InferenceObjective CRDs bind priority values to pools, with negative priorities marking sheddable traffic:

apiVersion: llm-d.ai/v1
kind: InferenceObjective
metadata:
  name: best-effort-traffic
spec:
  priority: -10
  poolRefs:
  - name: default-pool

The EndpointPickerConfig wires the detector and per-band ceilings:

apiVersion: llm-d.ai/v1
kind: EndpointPickerConfig
featureGates:
- flowControl
plugins:
- type: round-robin-fairness-policy
- type: fcfs-ordering-policy
- type: concurrency-detector
  parameters:
    maxConcurrency: 15
    concurrencyMode: requests
    headroom: 0.0

flowControl:
  saturationDetector:
    pluginRef: concurrency-detector
  maxBytes: "10Gi"
  maxRequests: "1k"
  defaultRequestTTL: "60s"
  priorityBands:
  - priority: 100
    maxRequests: "500"
    fairnessPolicyRef: round-robin-fairness-policy
    orderingPolicyRef: fcfs-ordering-policy
  - priority: 0
    maxRequests: "200"
  - priority: -10
    maxRequests: "50"

One distinction in that config is easy to miss and matters a lot operationally. The maxBytes and maxRequests limits protect the gateway’s own memory footprint — they’re about the EPP not becoming the bottleneck through unbounded queue growth. The Saturation Detector is a separate mechanism protecting the GPU’s actual compute and KV cache capacity. They answer different questions and you tune them against different failure modes.

There’s also a trust-boundary warning attached to those headers, and it’s the correct one: letting end users self-assert x-llm-d-inference-fairness-id: tenant-a or claim premium-traffic is an abuse vector. In production those get stripped at the edge and injected by a trusted gateway based on API key identity.

Two detectors, two different blind spots

The Saturation Detector decides whether the gate opens. There are two, and the docs are unusually blunt about what each one cannot see.

utilization-detector is closed-loop, reacting to real-time telemetry like queue depth and KV cache utilization. It’s more accurate but subject to telemetry lag, which the docs call out as a thundering herd risk. In a heterogeneous pool it treats all endpoints equally as an unweighted average, so one small saturated endpoint can trigger global backpressure.

concurrency-detector is open-loop, counting active in-flight requests. It reacts instantly but is blind to actual hardware memory pressure — KV cache filling is invisible to it. In heterogeneous pools it biases toward the state of larger endpoints.

Neither is free. The docs land on a tuning principle they call the healthy buffer: keep a small number of requests queued locally on the model servers, just enough that continuous batching engines never starve for work, small enough that the vast majority of queuing happens centrally where priority and fairness can be enforced. For utilization-detector that’s queueDepthThreshold; for concurrency-detector it’s setting maxConcurrency just above the server’s effective batch size.

In-flight eviction, and the metric that tells you it’s lying

The most aggressive thing in the release is in-flight eviction. Gated dispatch only decides whether to release new work, so it can’t reclaim capacity that low-priority requests already hold. With enableEviction: true, Flow Control will terminate an already-dispatched negative-priority request to make room for a higher-priority band that’s blocked at its dispatch ceiling.

The mechanics: Envoy gets an ImmediateResponse with 429, the upstream stream to the model server gets reset, the model server aborts generation and frees its KV blocks, and the client sees x-llm-d-request-dropped-reason: evicted. The default victim policy picks the lowest priority first, then the most recently dispatched, so requests that have accrued the most work get evicted last.

What I keep coming back to is the honesty in the observability section. There are five revocation and reclaim metrics, and the docs specifically call out revocations_total{outcome="timed_out"} as the one to watch during rollout. It counts revocations whose stream termination was never confirmed. The controller treats those as confirmed anyway, so a hung stream can’t hold the pacing gate closed indefinitely — but a sustained nonzero rate means reclamation is being sized against capacity that may never have come back.

Flow Control doesn’t observe the engine’s reclaim time. It assumes a bounded one. The docs are direct about it: verify on your engine that aborted requests free capacity promptly before enabling this in production. And the evicted caller owns retry, which means the retry path needs idempotency or request-level dedup, or a retried request can produce two final results. This is a batch-job feature in practice. If the owner of a negative-priority band can’t safely retry, don’t enable it.

Agent-aware serving is a shim, not a scheduler

The v1.0 release notes list “agent-aware serving” as a headline theme: a session-state-producer plugin, evolving session affinity, turn-priority scheduling, and native Responses API state. Digging into the actual guide, it’s thinner than the framing suggests, and I think that’s fine.

The guide is labeled Experimental. It deploys vllm/agentic-api in front of the router with a PostgreSQL 17 store behind it. That service persists every response and rehydrates the conversation when a request names a previous_response_id, so the client only sends the new turn. Each inference round it forwards is stateless, and the router treats it like any other request with prefix-cache and load-aware scoring.

The reference config is two Qwen3-32B replicas at tensor parallelism 2 on H100s, which is a deliberately modest target — enough to prove the state round-trip, not enough to be interesting. Because the model server must expose /v1/responses with its own stateless implementation, SGLang and TensorRT-LLM are explicitly out of scope. It’s a state store bolted in front of a stateless stack, which is the honest shape of the problem today: the router and the engines have no memory, so the memory lives somewhere else and pays a rehydration cost.

Side note, entirely unrelated to the above

The v1.0.0 release notes contain three typos — “hadware partners,” “dissagregation,” and “opertunity” — and the model server image table lists docker.io/rocm/atom-dev twice. None of these affect anything. I’m noting them because I’ve now read a lot of release notes that are immaculate, and a project at 500 contributors across 25 organizations still has a human typing these out. The same notes also contain this, which I think is a better signal than the typos:

we are deprecating building our own inferencing images. We have kept some of these image streams around while hadware partners migrate their images to their respective upstream community

They deprecated their own ROCm image, cherry-picked vllm v0.32.0-rc.2 upstream into their own registry specifically to guard against image garbage collection, and named the operational reason rather than pretending it’s clean. That’s what shipping to production actually looks like at this scale.

What it doesn’t fix

Flow Control cannot manufacture capacity. It governs when and in what order work is dispatched, nothing more. If your fleet is undersized, queuing in the EPP just makes the wait happen somewhere you can see it.

It shifts TTFT rather than eliminating it. The docs are explicit: enabling Flow Control is an explicit choice to protect TPOT at the expense of queue time. Its real function is controlling where and for whom TTFT gets accrued.

The queues are in-memory and not persistent. An EPP restart loses everything queued. Graceful shutdown drains with a retryable 503 so clients retry rather than treating it as a hard fault, but an abrupt crash is just connection drops.

And the whole thing is behind a feature gate — flowControl has to be explicitly enabled in the EndpointPickerConfig. Without it, negative-priority requests are rejected immediately on saturation and everything else goes straight through. Most deployments running llm-d today are not using any of this.

There’s also a dependency trap worth flagging: the disaggregation guide requires LeaderWorkerSet v0.11.1 or newer with the DisaggregatedSet API enabled. The release notes say almost all guides will break without it, which is an odd sentence to find in a 1.0 announcement.

One thing I haven’t figured out yet — whether the healthy buffer tuning guidance survives contact with a heterogeneous pool where the endpoints disagree about what full means. The concurrency-detector biases toward larger endpoints and utilization-detector averages unweighted, so a fleet with mixed H100 and A100 under a single InferencePool is going to have a saturation signal that’s wrong in one direction or the other. I don’t see guidance for that case in either detector’s README, and it seems like exactly the deployment llm-d was built for — DigitalOcean is serving Kimi K3 across both AMD and NVIDIA hardware, AWS is pairing EFA with NIXL. Maybe someone running that shape will write it up.

References and where to dig

Aniket Karne
DevOps & AI Engineer · Amsterdam
Back to all posts
Reader correspondence

Comments

Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.