What Is llm-d? How It Routes Requests Across vLLM Servers, and When You Need It
What is llm-d?
llm-d is an open-source, Kubernetes-native project that runs many model servers, such as vLLM, as one service. Its router puts a proxy (Envoy) and an endpoint picker in front of the servers, and the picker sends each request to the server with the best mix of short queue, free cache room and an already cached prompt beginning. llm-d does not replace vLLM: vLLM still loads the model and writes the answers. On four simulated servers, the llm-d router cut the 90th percentile wait for a short question's first word from 2,688 ms to 674 ms compared with a plain Kubernetes Service.
Answer last checked
Save your progress and get the AI Engineering cheat sheet PDF
This guide answers 16 questions about llm-d: what it is, how it differs from vLLM, how its router picks a server, what cache-aware routing and the prefill/decode split do, and when you do not need it. The answers come from Part 7 of Hands-On Inference Engineering, where we built the llm-d router, read its decisions and measured it. Where the servers were simulated, we say so.
16 questions · 4 sections · answers from the course
These answers come from our course Hands-On Inference Engineering: Serve LLMs on GPUs with vLLM and SGLang: 67 lessons ready so far, each one run and measured on a rented NVIDIA GPU. The first lessons are free to read, with no card needed.


The short version
llm-d is the layer above vLLM, not a replacement for it. If you run several vLLM copies on Kubernetes and a plain Service leaves one copy drowning while others idle, the llm-d router fixes that by choosing a server for each request. Start with the router in standalone mode and read its weights, because the default rules prefer cached servers so strongly that they can create hot spots. Add a prefill/decode split only for long prompts on many GPUs.
Readers in India pay in rupees; readers in the US, UK, Singapore, Australia and the Gulf see US dollar prices and can pay by card or PayPal. The pages for your region: India, Singapore, Australia, the Gulf and UK and Europe.
If this helped, the full hands-on course goes much deeper.
In the course you put vLLM on Kubernetes, install the llm-d router, read every decision its endpoint picker makes, break it on purpose, and run a real prefill/decode split on two H100 GPUs.
1. What llm-d is, in short
llm-d sits in front of model servers such as vLLM and decides which server answers each request. Most of what people search for comes down to four questions.
What is llm-d?
llm-d is an open-source project that adds language-model-aware routing, cache handling, prefill and decode separation and autoscaling on top of Kubernetes and model servers such as vLLM and SGLang. Its own site calls it a Kubernetes-native stack for distributed LLM inference. Version 1.0.0 came out on 20 October 2026.
The part most teams use first is the router. It is a proxy, Envoy, plus a program called the endpoint picker that chooses a model server for every request by reading each server's queue, its cache use and which prompts it has already seen.
Source: llm-d.ai, the project's own site
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
Who makes llm-d, and is it part of the CNCF?
llm-d is open source and run as a series of LF Projects, according to its own site, which also says it is a CNCF Sandbox project. The course lesson notes it has been a Cloud Native Computing Foundation sandbox project since March 2026.
Its code, documents and tested recipes are public, so you can check every claim yourself. That is how the course studied it: from llm-d 1.0.0's documents, the endpoint picker's source code and the router's Helm chart, all read line by line.
Source: llm-d.ai
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
What is the difference between llm-d and vLLM?
vLLM is the model server: it loads the model onto a GPU and writes the answers. llm-d does not replace it and does not change it. llm-d runs many vLLM servers as one service and decides which of them takes each request. For basic routing nothing is installed inside the vLLM pod; the router only reads the metrics page that vLLM already publishes.
So the question is not llm-d or vLLM, but one vLLM server or several vLLM servers with llm-d in front. With one server, llm-d has nothing to choose between.
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
How much does the llm-d router help compared with a Kubernetes Service?
On four simulated model servers with the same uneven traffic, the 90th percentile wait for a short question's first word fell from 2,688 ms through a plain Kubernetes Service to 674 ms through the llm-d router, about 4 times less. Through the Service, one server that happened to get 16 long documents made its short questions wait 2,352 ms in the middle, while the other three answered in under 30 ms.
Be clear about what that run proves. The servers were llm-d's inference simulator, not vLLM on a GPU. Where each request went is measured; every millisecond is the simulator's formula, set from our earlier RTX 4090 recordings. Measure your own traffic on your own GPUs before you quote a speed-up.
What we measured: Four simulated servers (llm-d-inference-sim 1.2.0), same traffic: short questions p90 2,688 ms through a Service, 674 ms through the router; p99 3,422 ms and 1,207 ms. Times are modelled, placements measured.
2. How the llm-d router decides
The router is small enough to read end to end. These answers follow one request through it, using llm-d 1.0.0 and its standalone Helm chart.
What are the parts of the llm-d router?
Two programs. Envoy, a widely used open-source proxy, receives each request on port 8081 and holds it. It asks the endpoint picker, over Envoy's external processing protocol on port 9002, which server should take it. The picker answers by setting one header, x-gateway-destination-endpoint, to a server's address, and Envoy forwards the request exactly there.
Envoy removes any copy of that header the client sent, so a client cannot choose its own server and skip the picker's rules. The picker never carries a request to a server, and Envoy never looks at a cache.
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
How does the llm-d endpoint picker choose a server?
It filters, scores and picks. Each scorer gives every server a mark from 0 to 1, the picker multiplies each mark by the scorer's weight, adds them up and takes the highest total. The chart's built-in default weighs the waiting queue 2, the free cache room 2 and the share of the prompt's beginning the server already holds 3.
In our lab the picker printed 7.000 for the server that had just read the same question and 4.000 for the two others: 2 + 2 + 3 against 2 + 2 + 0. You can check every decision with a pencil. One blind spot: the queue score reads only waiting requests, so a server running 8 requests with nobody waiting scored just 0.183 below an idle one.
What we measured: llm-d on a kind cluster, 3 simulated servers: 7.000 for the server holding the prompt, 4.000 for the others; a server running 8 scored 3.817 against 4.000; about 0.46 ms a decision.
What is an InferencePool?
A Kubernetes object, from the Gateway API Inference Extension (version 1.6.2 in llm-d 1.0.0), that lists a group of model server pods by their labels, the port they listen on (8000 for vLLM) and the endpoint picker that chooses among them. When a pod is added, removed or stops being ready, the picker's list changes with it.
It also carries a failureMode, FailOpen or FailClose, that tells a gateway what to do when the picker does not answer. The pool, its pods and its picker must sit in the same namespace, and one pool usually serves one model.
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
Do I need the Kubernetes Gateway API to use llm-d?
No. In standalone mode you install the custom resource definitions and one Helm chart, which runs Envoy and the picker together. That is what the course's labs use, and llm-d recommends it for testing, local evaluation and batch work.
Gateway mode, also called the Inference Gateway, is for clusters that already run a shared Gateway, such as Istio, GKE's gateway or agentgateway, or that need one entrance for the model and their ordinary services. The picker, its rules and the InferencePool are the same in both modes; only the proxy changes.
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
What happens if the llm-d endpoint picker crashes?
In the standalone chart's default layout, Envoy and the picker share one pod, and a pod counts as ready only when both containers are. When the picker stops, Kubernetes takes the whole router pod out of its Service, so new requests have nowhere to go, even with fail-open switched on. In our lab, a second picker crash gave 11.2 seconds with no answer at all.
The chart intends fail-open for its service layout, where Envoy runs as its own Deployment. The course did not run that layout, so test it on your own cluster before you rely on it. Adding picker replicas alone does not fix it: with the default leader election only the leader's pod counts as ready.
What we measured: Second stop of the picker, one question every half second: 2 answered with HTTP 400, 11 got no answer over 11.2 s, 3 answered.
If this helped, the full hands-on course goes much deeper.
In the course you put vLLM on Kubernetes, install the llm-d router, read every decision its endpoint picker makes, break it on purpose, and run a real prefill/decode split on two H100 GPUs.
3. Cache-aware routing and the prefill/decode split
The two features people come to llm-d for. One is cheap and often worth it; the other needs many GPUs and pays only for certain traffic.

What is cache-aware routing in llm-d?
Sending each request to the server that already holds the most of its beginning in its prefix cache, so that server reads only the new part. An AI agent sends the same instructions, tool descriptions and conversation again on every turn, so where each turn lands decides how much reading it costs.
On a replay of 40 support-agent sessions (268 requests) through four simulated servers, the router's default rules raised the share of prompt tokens found in a cache from 86.2% through a plain Service to 94.1%. They did it by sending all 268 requests to one of the four servers.
What we measured: Agent replay, 8 sessions at once, four simulated servers: hit rate 86.2% (Service) and 94.1% (cache-aware rules), all requests on one server.
Can cache-aware routing make things slower?
Yes. Preferring the warm server makes hot spots. At 32 sessions at once, the default rules made the 90th percentile wait for a later turn's first word 1,260 ms, slower than the plain Service's 725 ms, because the warm servers had queues while others sat idle.
A rule set that prefers the warm server only until it gets busy kept a 91.8% hit rate, used all four servers and brought that slow end down to 111 ms. The weights were tuned for these simulated servers, so replay your own traffic at your real peak before choosing yours.
What we measured: 32 sessions at once, simulated servers: later turns p90 725 ms (Service), 1,260 ms (cache-aware), 2,600 ms (sticky), 111 ms (cache-then-load). Times are modelled.
What is the prefill/decode split, and does it make serving faster?
It puts the two jobs of every request on different GPUs: one server only takes in prompts, another only writes answers, and the KV cache is copied between them. llm-d has a tested recipe for it; the course ran it with vLLM's own parts on two real H100 GPUs with Qwen3-8B.
It depends on what you call faster. With 8,192-token prompts, the middle person's first word came in 561 ms on the pair against 1,123 ms on two plain vLLM servers. But the two plain servers wrote more tokens a second at every load: 1.33 times as many with 64 people and short prompts, 1.13 times with long prompts.
What we measured: Two H100s, Qwen3-8B, vLLM 0.33.0: long prompts, 16 people, first word middle 561 ms (pair) and 1,123 ms (two plain servers); 821 and 927 tokens a second.
Lesson: Separating prefill and decode, measured on two H100s
4. Do you need llm-d?
Most of llm-d is optional, and its published recipes were tested on hardware far bigger than most teams have. These answers help you decide what to start with.
When do I not need llm-d?
When you run one model server: there is nothing to choose between. Also when your servers get short, similar requests that rarely share a long beginning, because the router's advantage comes from uneven request sizes and from reusing cached prompt beginnings.
A prefill/decode split in particular is not worth it for short prompts, a model that fits on one GPU, or a machine with only two GPUs. In the course's tests, tensor parallelism and two plain servers both did better there. Start with vLLM on Kubernetes, measure where requests wait, and add the router when one copy fills while others sit idle.
Lesson: vLLM on Kubernetes: a Deployment, a GPU request and health checks
What hardware does llm-d need?
The router needs no GPU. Its chart reserves 8 CPU cores and 8 GiB of memory for the picker and 4 cores and 8 GiB for Envoy by default, which is sized for production traffic; our lab ran the picker on a quarter of a core for a few requests a second.
llm-d's published NVIDIA recipes were tested on 4 H100 GPUs for the optimized baseline, 5 H200 GPUs for prefill/decode disaggregation and 32 H200 GPUs for wide expert parallelism. Those GPUs serve the model, and they are tested setups, not minimums; the guides also list a CPU-only community setup with Llama-3.2-3B.
Lesson: How llm-d is built: the router, the endpoint picker and vLLM
Can I try llm-d without a GPU?
Yes, to learn how the router works. llm-d's inference simulator, llm-d-inference-sim, answers vLLM's interface and publishes vLLM's metric names, so the real router makes real decisions in front of it. The course runs three simulated servers and the router on a kind cluster on one machine with Docker, 4 processor cores and 8 GB of memory, your own laptop included.
What it proves: which server each request went to, the picker's scores and the cache hits. What it cannot prove: real speed. The simulator runs no model, and its times come from a formula, so real timings need vLLM on a GPU.
Can I learn llm-d from India, Singapore or the Gulf without renting GPUs there?
Yes. The routing lessons need no GPU and no cloud region with GPU stock: our recordings ran on one small CPU machine in AWS's us-east-1 region, and the same lab runs on any computer with Docker, 4 cores and 8 GB of memory, wherever you are.
You only need a rented GPU for the parts that measure real speed, such as the prefill/decode split, which ran on two H100s on a rented pod.
Where to go next
If this helped, the full hands-on course goes much deeper.
In the course you put vLLM on Kubernetes, install the llm-d router, read every decision its endpoint picker makes, break it on purpose, and run a real prefill/decode split on two H100 GPUs.
Every number on this page comes from Hands-On Inference Engineering: Serve LLMs on GPUs with vLLM and SGLang, where you rent the GPU yourself, run each command and compare your numbers with ours. Start with the free introduction and the free lessons on prefill and decode and the KV cache. If you are also preparing for interviews, the two big courses together and the Inference Engineering interview pack are below.
These questions are a start. The interview asks more.
Get all 120 questions in the Inference Engineering pack
Each question has why it is asked, a full answer, what the interviewer listens for, the follow-ups, the common mistakes and a diagram (141 diagrams in all). A PDF you keep, junior to staff level.
Pay by UPI, cards or netbanking through Razorpay. Pay by card or PayPal, in US dollars. Download at once from My packs.
