Inside the Endpoint Picker (EPP) — the pluggable filter → score → pick engine of the Gateway API Inference Extension that llm-d uses to route every request to the best vLLM pod.
Markell Rawls
Filter plugins first drop unhealthy or incompatible endpoints. Each remaining candidate is then scored by pluggable scorers — every scorer returns 0–1, multiplied by an operator-configured weight — and a picker selects the highest weighted sum.
From request arrival at the gateway to pod selection — the EPP runs this cycle for every request, adding only milliseconds of overhead. Scores below use the illustrative weights from the previous slide.
Prefix-cache affinity typically carries the largest scorer weight: on a warm hit, vLLM reuses the KV cache for every cached token and only prefills the remainder of the prompt.
Approximate: the prefix-cache scorer remembers which pod it routed each prefix to. Precise: vLLM emits KV-cache events that llm-d's KV-cache manager indexes for block-level lookups.
100 requests head-to-head. Watch how cache-aware scoring beats classic load balancing. This is an illustrative in-browser simulation, not a benchmark.
Scoring picks the best pod — but llm-d's scheduler also decides which kind of pod serves each phase of a request, and whether low-priority work should run at all under load.
Every workload has a sweet spot. Tune scorer weights to match your traffic pattern — the ratios below are illustrative starting points.
| Workload Profile | Prefix Cache | KV Util | Queue | LoRA |
|---|---|---|---|---|
| Chatbot | 0.60 | 0.15 | 0.15 | 0.10 |
| Code Completion | 0.55 | 0.20 | 0.20 | 0.05 |
| Batch Processing | 0.15 | 0.45 | 0.35 | 0.05 |
| Multi-tenant LoRA | 0.30 | 0.15 | 0.15 | 0.40 |
| RAG Pipeline | 0.50 | 0.25 | 0.20 | 0.05 |
| Low-Latency API | 0.25 | 0.30 | 0.40 | 0.05 |
From a single node to thousands of GPUs, llm-d's inference scheduler helps every request find the fastest path to completion.
Routes to pods with warm KV cache, eliminating redundant prefill computation.
KV-cache utilization and queue depth from live vLLM metrics prevent hotspots while maximizing throughput.
LoRA adapter affinity ensures multi-tenant requests avoid cold-loading adapters.
Markell Rawls