Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Engine | One running inference server such as vLLM, SGLang or TensorRT-LLM, serving one model on one group of GPUs (15.a). |
| Disaggregation | Running prefill and decode on separate engine pools and moving the KV cache between them (14.j). |
| KV index | A cluster-wide map of which replica holds which KV cache blocks, kept up to date by events the engines publish (21.h). |
| Planner | An autoscaler that sizes each pool to meet latency targets rather than CPU or GPU utilisation. |
| Gang scheduling | Placing all the pods of one multi-node model instance at once, or none of them (21.c, 21.e). |
| NIXL | NVIDIA’s open library for moving KV cache and weights between GPUs, CPUs and storage (9.e). |
| Well-lit path | llm-d’s name for a tested, documented recipe for one deployment pattern. |
1. What is it?#
An inference engine serves one model on one group of GPUs. A distributed serving framework turns many engine instances into one service. It decides which instance gets each request, can split prefill from decode, moves KV caches between instances and storage tiers, scales each pool and keeps all of it running through failures and upgrades.
The two main open-source frameworks in late 2026 are NVIDIA Dynamo and llm-d. This lesson explains what problem they solve, how each is built, how they differ and when you need one. The mechanisms they combine are taught elsewhere: routing (21.g, 21.h), gateways (21.i), disaggregation (14.j), KV offload and sharing (14.k, 14.l), KV transfer (9.e), autoscaling (20.g, 23.d).
Facts checked on 13 November 2026: Dynamo v1.6.2 (5 November 2026), llm-d v1.0.0 (20 October 2026), Gateway API Inference Extension v1.6.2, Grove v0.2 (beta).
2. Why does it exist?#
Put ten vLLM replicas behind a normal load balancer and you lose most of what the engine is good at:
- Prefix caches are wasted. Round robin sends turn 5 of a conversation to a replica that has never seen turns 1–4, so it recomputes the whole history (21.h).
- Load is invisible. Connection counts say nothing about queue depth, KV memory in use or how long the running requests are. A replica with one 100k-token request is busier than one with ten short ones (20.f).
- Prefill and decode interfere. Every replica mixes both phases, so long prompts stall everyone’s token stream (12.c, 14.j).
- Scaling is blind. CPU-based autoscaling does not see GPU saturation, and GPU utilisation is misleading (22.d).
- Big models span nodes. A wide expert-parallel MoE deployment is 16–72 GPUs that must be scheduled, started and failed over as one unit (14.h).
A distributed serving framework adds the missing layer: model-aware routing, phase-aware pools, cluster-wide KV management and SLO-aware scaling.
3. Simple analogy#
The engines are individual restaurants. A plain load balancer is a taxi rank that drops each customer at the next restaurant in line. A serving framework is a reservation system for the whole chain: it knows which restaurant has your table and your half-finished meal, which kitchens are backed up, which ones specialise in starters and which in mains, and when to open another branch.
4. Tiny example: the same fleet, with and without the framework#
Eight replicas, 200 multi-turn conversations, 80 requests per second (the simulation in 21.h):
plain Kubernetes Service (random) prefix hit 50% TTFT p50 161 ms p99 849 ms
KV-aware router (estimated TTFT) prefix hit 88% TTFT p50 10 ms p99 132 msThat gain needs only the router, the first and cheapest piece of either framework. The other pieces (disaggregation, KV tiers, the planner) pay off later and at larger scale, which is why section 8 recommends adopting them one at a time.
5. Technical explanation#
The common architecture#
Both frameworks have the same shape:
flowchart LR
C(("clients")) --> FE["Frontend / gateway<br/><small>OpenAI API, auth, tokenisation</small>"]
FE --> R["Router / endpoint picker<br/><small>scores replicas: KV overlap, load, SLO</small>"]
R --> P1["Prefill pool<br/><small>engine instances</small>"]
R --> D1["Decode pool<br/><small>engine instances</small>"]
P1 ==>|"KV transfer<br/>NIXL / RDMA"| D1
KVI[("KV index<br/><small>which blocks live where</small>")] -.-> R
P1 -.->|"block events"| KVI
D1 -.->|"block events"| KVI
D1 <--> T[("KV tiers<br/><small>CPU, SSD, remote</small>")]
PL["Planner / autoscaler<br/><small>SLO-driven</small>"] -.-> P1
PL -.-> D1
class FE io
class R,KVI,PL queue
class P1,D1 compute
class T memory| Component | What it does | Taught in |
|---|---|---|
| Frontend / gateway | Accepts OpenAI-compatible requests, authenticates, may tokenise so the router can see token IDs | 21.i |
| Router | Picks a replica for each request using a cost score: expected prefix-cache hit, queue depth, KV memory pressure, phase | 21.g, 21.h |
| KV index | A cluster-wide map of which KV blocks each replica holds, kept current by events the engines publish | 21.h |
| Prefill / decode pools | Separate engine groups with their own parallelism and scaling | 14.j |
| KV transfer | Moves KV from prefill to decode, and between tiers | 9.e |
| KV tiers | CPU memory, SSD and remote stores for offload and sharing | 14.k, 14.l |
| Planner | Scales each pool to hold time-to-first-token and inter-token latency targets | 20.g, 23.d |
| Deployment controller | Starts multi-GPU, multi-node instances as one unit and rolls them out safely | 21.c, 21.l |
NVIDIA Dynamo#
Dynamo is NVIDIA’s open-source, engine-agnostic framework, mostly written in Rust with Python bindings. It drives vLLM, SGLang or TensorRT-LLM as backends behind one frontend. Its parts, from the project’s own description:
- Frontend: an OpenAI-compatible HTTP API.
- Router: KV-aware routing on cache overlap and projected load, with a cost formula you can tune (21.h). It learns cache state from engine KV events, or predicts it when events are off.
- Planner: an SLA-driven autoscaler that profiles the workload and right-sizes the prefill and decode pools.
- KV Block Manager (KVBM): offloads KV cache across GPU → CPU → SSD → remote storage (supported for vLLM and TensorRT-LLM; in progress for SGLang).
- NIXL: the transfer library underneath, for KV and for weights.
- ModelExpress: streams weights GPU-to-GPU over NIXL/NVLink, so a new replica loads from a running one instead of from storage (NVIDIA claims 7x faster start-up for DeepSeek-V3 on H200).
- Grove: a Kubernetes API for multi-pod inference:
PodCliqueSetdescribes the whole system,PodCliqueone role (for example prefill workers),PodCliqueScalingGrouproles that scale together, andPodGangthe set the scheduler must place at once, inside the right NVLink domain. Still beta (v0.2). - Fault tolerance: health checks and migration of in-flight requests off failed workers.
- AISimulate: offline search for a good serving configuration without a GPU cluster.
Dynamo can own the whole request path (client → Frontend → Router → workers) or sit behind a
Gateway API gateway: the gateway calls a Dynamo endpoint picker that uses the same router,
then forwards to the chosen worker’s frontend sidecar. Dynamo is the natural choice on NVIDIA
fleets, especially with TensorRT-LLM or on GB200/GB300 and Rubin racks, where NVIDIA tunes the
whole stack together.
llm-d#
llm-d is a Kubernetes-native framework started by Red Hat, Google, IBM, NVIDIA, CoreWeave and others, and accepted as a CNCF Sandbox project in March 2026. It builds on vLLM (SGLang and TensorRT-LLM images are also listed) and on Kubernetes standards rather than its own control plane:
- The llm-d Router is a Gateway API Inference Extension endpoint picker. Any gateway that
implements the extension forwards each request to it over ext_proc (21.i); it filters and
scores the replicas in an
InferencePoolwith plugins (prefix cache, KV use, queue depth, session and LoRA affinity) and returns the best one. Since August 2026 the full picker and theInferenceObjectiveandInferenceModelRewriteAPIs live in llm-d rather than in the Inference Extension. It can also run standalone with its own Envoy. - KV cache indexing: a precise index of block locations built from the events vLLM or SGLang publish (21.h).
- Disaggregation: a sidecar next to each decode pod coordinates the prefill hand-off (and an
encode stage for multimodal models). v1.0 adds
DisaggregatedSet, which manages prefill and decode replicas as one unit with coordinated, lockstep rollouts. - Flow control (v1.0): priority- and fairness-aware queuing with controlled load shedding, so latency-sensitive traffic and bursty agent fleets share one fleet (21.f).
- Agent-aware serving (v1.0): session affinity, turn-priority scheduling and Responses API
state (
previous_response_id) so multi-turn agents stay near their cached context. - Well-lit paths: tested recipes for intelligent routing, P/D disaggregation, wide expert parallelism and others, instead of one monolithic install.
In v1.0 the router configuration API graduated to v1, the router gained high availability with
a hot standby, and all components moved to one version number. llm-d also integrates Dynamo’s
ModelExpress for fast weight loading: the two projects share pieces as well as competing.
Dynamo and llm-d compared#
| NVIDIA Dynamo | llm-d | |
|---|---|---|
| Philosophy | A complete framework with its own frontend, router, planner and KV manager | A composition of Kubernetes standards plus engines |
| Engines | vLLM, SGLang, TensorRT-LLM | vLLM first; SGLang and TensorRT-LLM images listed |
| Runs on | Kubernetes or plain processes | Kubernetes |
| Request entry | Dynamo frontend, or a Gateway API gateway calling Dynamo’s endpoint picker | Any Gateway API Inference Extension gateway, or the router’s standalone Envoy |
| Strength | Deep NVIDIA hardware integration, planner, KV tiers, TensorRT-LLM | Kubernetes-native operations, multi-tenant flow control, vendor-neutral governance |
| Governance | NVIDIA-led open source | CNCF Sandbox, multi-vendor |
Other options you will meet#
- vLLM production-stack (Helm charts, v0.1.14) and AIBrix (v0.8.0): control planes and reference deployments for vLLM fleets, both under the vLLM project.
- Kinference: an open-source control plane for vLLM on Kubernetes from Buoyant (the Linkerd company), announced on the vLLM blog on 4 November 2026, with KV-aware routing, token rate limits and per-tenant cost tracking. New; its 95% TTFT reduction is a vendor benchmark.
- KServe and Ray Serve: general model-serving platforms that host LLM engines and integrate parts of the above (KServe with llm-d, Ray Serve with vLLM).
- SGLang Model Gateway: SGLang’s own cache-aware router with P/D disaggregation (21.i).
6. Under the hood: the loops that keep it working#
A framework is several control loops running at different speeds:
LOOP EVERY INPUT OUTPUT
routing request KV index, load metrics a replica
KV index update block event BlockStored / BlockRemoved index entries
events (ZMQ from vLLM)
load scraping 0.1–1 s engine /metrics load per replica
flow control request saturation, priority, tenant admit, queue or shed
planner 10 s – minutes TTFT, ITL, queue, rate replicas per pool
rollout controller on change new version pods replaced in lockstep
gang scheduler on placement PodGang / topology labels all pods placed or noneTwo consequences matter in production:
- The fast loops run on predictions. The router’s view of a replica is milliseconds to seconds old, so routing scores are forecasts. A request can land on a replica that evicted its prefix a moment ago. Measure the real hit rate per replica, not the router’s estimate.
- The slow loops must not fight the fast ones. If the planner scales a pool down while the router is still sending conversations to its warm caches, hit rates drop and TTFT rises, which may make the planner scale up again. Drain before removing replicas, and give the planner a cooldown longer than the cache warm-up time (23.d).
7. Performance implications#
- The router is on the critical path of every token stream. Run it highly available and watch its own latency. A router that adds 20 ms of scoring to every request erases a cache hit on short prompts.
- KV-aware routing is the biggest, cheapest win for chat and agents (section 4). Disaggregation helps mostly when prompts are long and both TTFT and ITL targets are strict.
- Topology matters. Prefill and decode pools placed in different racks or behind different leaf switches pay for it on every request (9.d, 9.e); this is why Grove and topology-aware schedulers exist.
- Vendor and project benchmarks are claims. Reproduce them on your traffic shape before planning capacity on them.
8. Production implications#
1–2 replicas of one model → no framework. A Kubernetes Service is fine.
Several replicas, multi-turn or shared prompts → you need prefix-aware routing (21.h);
an endpoint picker alone may be enough.
Long prompts at scale, strict TTFT and ITL SLOs → disaggregation pays off: adopt a framework.
Wide-EP MoE across racks → yes: gang scheduling, topology, KV movement.
Many teams sharing one fleet → yes: flow control, priorities, quotas (21.f).- Adopt incrementally: routing first (largest win, least risk), then KV offload, then disaggregation, then planner-driven autoscaling. Measure after each step.
- Upgrades are coordinated. Prefill and decode engines exchanging KV must agree on the KV
layout and connector version. Roll them out together; that is why
DisaggregatedSetand Dynamo’s graph deployments exist. - Pin the version matrix. Each framework release supports specific engine versions (llm-d v1.0.0 ships with vLLM v0.30–v0.31 images, for example). Upgrade the framework and engines together, after testing.
9. Common mistakes#
- Adopting disaggregation first. Most of the benefit for typical chat and agent traffic comes from KV-aware routing. Disaggregation adds pools, transfers and failure modes.
- Scaling pools on GPU utilisation. Scale on latency SLOs and queue depth (23.d).
- Ignoring the engine version matrix. Mixed versions are the most common cause of broken KV transfer.
- Trusting the router’s estimated hit rate instead of the engines’ measured one.
- Running one router replica. It is the front door to every model.
- Splitting prefill and decode across racks without measuring the transfer cost.
10. Hands-on exercise#
- Deploy two vLLM replicas of a small model behind a plain Kubernetes Service. Replay a
multi-turn conversation trace and record
vllm:prefix_cache_hits ÷ vllm:prefix_cache_queriesper replica (19.c). - Replace the Service with an
InferencePooland the llm-d Router (or Dynamo’s router). Replay the same trace. Compare hit rate, median TTFT and p99. - Turn KV events off (approximate mode) and on (precise mode). How different are the hit rates on your trace?
- Draw your target production architecture using the component table in section 5. Mark what you would adopt first and the measurement that would justify each later step.
11. Interview questions#
- What does a distributed serving framework add on top of an inference engine?
- How does a KV-aware router know which replica holds a prefix, and how can it be wrong?
- Compare the design philosophies of Dynamo and llm-d.
- Why does gang scheduling matter for wide expert parallelism?
- In what order would you introduce routing, offload and disaggregation into an existing vLLM fleet, and what would you measure at each step?
- How can the planner and the router work against each other?
12. Further reading#
Checked on 13 November 2026.
- NVIDIA Dynamo (GitHub) and Dynamo documentation: disaggregated serving
- Grove
- llm-d v1.0.0 release notes and the llm-d Router
- CNCF: Welcome llm-d to the CNCF
- Gateway API Inference Extension and its introduction on the Kubernetes blog
- agentgateway with llm-d and the Inference Extension
- vLLM blog: Introducing Kinference
- AIBrix and vLLM production-stack