When vLLM disaggregated prefill serving fits a latency goal
Disaggregated prefill and decode splits the two phases of a request onto separate vLLM instances: one instance processes the prompt (prefill) and hands the resulting KV cache to another instance that generates the output tokens (decode). The point of the design is latency for token streaming, not throughput. If your team sees long prompts from some users stalling token streams for everyone else on the same server, this is one of the designs to evaluate. It does not make the server handle more requests per GPU, and it adds moving parts that must be operated.
The feature is documented by vLLM as experimental, so treat it as a deployment design decision rather than a configuration switch. Turning it on means choosing roles for each instance, a KV connector that moves cache between them, and a routing layer that sends each request through the prefill instance first. Ask the vLLM project and your own engineers to confirm the current status of the connector you plan to use in the release you pin, and check the vLLM disaggregated prefilling documentation against the version you intend to run.
Before committing, measure where the latency actually comes from. Use the Prometheus metrics at /metrics to separate time to first token from inter-token latency under your real traffic mix, and confirm that long prompts are the cause rather than queueing or an undersized GPU. If the problem is general saturation, adding capacity or tuning batching will often help more than splitting the phases, and the split adds cost in a second set of accelerators plus the connector's transfer overhead. Plan for the case where the split is wrong for your workload: you need a rollback path to a single combined deployment, and a test plan that shows the latency gain holds for your prompt lengths before production traffic moves.
Request flow between prefill and decode instances
The request enters at a router, which sends the prompt to a prefill instance that builds the KV cache. A KV connector then moves that cache to a decode instance, which generates the tokens returned to the client. The dashed trust boundary marks the isolated network that carries the KV transfer. Check that every link inside it is closed to other traffic, because vLLM's security documentation says node-to-node communication is insecure by default and must be protected by network isolation.
Prompt processing and token generation run on separate instances joined by a KV connector.
Which KV connector fits your hardware and cache stack
NixlConnector is the connector the vLLM disaggregated prefilling docs list first for moving KV cache from a prefill instance to a decode instance. It is the connector most teams will evaluate when the goal is to pass the computed KV cache between two vLLM instances, typically on separate GPUs or nodes. Whether it fits depends on the transport underneath it, so the choice is tied to the network your GPU nodes actually have.
- Transport path: Confirm which network path the prefill and decode GPUs can use between them, including whether a high-speed fabric is available or traffic would fall back to a slower network.
- Accelerator vendor: Confirm the GPU vendor and driver stack on both sides, since the docs describe support per platform and mixed setups need separate checks.
- Node placement: Confirm whether prefill and decode run on the same node or across nodes, because that changes the network requirements.
- Isolation: Confirm that inter-node traffic sits on an isolated network, since the vLLM security docs state that node-to-node communication is insecure by default.
- Version pinning: Confirm the vLLM release you will run includes this connector in the form you need, because the feature is marked experimental.
Before you commit, check the connector's current requirements against the vLLM disaggregated prefilling docs.
LMCacheConnectorV1 connects vLLM to the LMCache layer, which manages KV cache outside the model's GPU memory. It fits teams that want to reuse cached prefixes or move cache between instances through a dedicated cache tier. The question here is less about GPU fabric and more about where the cache lives, how large it can grow and who operates it.
- Cache tier: Confirm whether you need a separate cache service and which storage tier it will use, such as host memory or local disk, according to what LMCache supports in your version.
- Capacity planning: Confirm the size of the cache you expect to hold and how eviction will behave under your traffic.
- Ownership: Confirm which team operates the LMCache component, since it adds a service to patch, monitor and back up alongside vLLM.
- Tenant data: Confirm whether cached KV data from one user or tenant could be reused for another, and what your isolation policy requires.
- Compatibility: Confirm the LMCache and vLLM versions that work together, since both move on their own release schedules.
Confirm the pairing with the LMCache project and the vLLM disaggregated prefilling docs before you size storage.
MooncakeConnector is the connector to evaluate when your KV transfer design is built around the Mooncake transfer and storage stack. Teams that already run Mooncake, or that want its disaggregated architecture for large clusters, will look at this option first. The main question is whether your organization is prepared to operate a second distributed system alongside vLLM.
- Existing footprint: Confirm whether your platform team already runs Mooncake components, since adoption from scratch adds a new system to learn.
- Network requirements: Confirm the network the transfer path needs between prefill and decode nodes and whether it can be isolated.
- Hardware support: Confirm the accelerators and drivers your nodes use against the current connector documentation.
- Operations: Confirm who handles upgrades, monitoring and incident response for the Mooncake side of the deployment.
- Experimental status: Confirm the maturity level stated in the release you target, and plan a rollback path to a non-disaggregated setup.
Check the connector configuration and current status in the vLLM disaggregated prefilling docs before adopting it.
MoRIIOConnector is listed in the vLLM docs as ROCm only, so it applies only to AMD GPU platforms. If your fleet is NVIDIA or Intel, it is not a candidate, and the other connectors on this page need to be evaluated instead. For AMD shops, the question is whether the ROCm version and GPU generation in your fleet match what the connector supports.
- Platform check: Confirm that your accelerators run ROCm and that the GPU generation is supported for this connector.
- ROCm version: Confirm the ROCm release your vLLM build targets and whether it matches your driver and kernel versions.
- Fabric: Confirm the inter-node network that AMD prefill and decode nodes will use, and test it before the build is finalized.
- Mixed fleets: Confirm whether you plan to run NVIDIA and AMD hardware in the same serving pool, since a single connector choice may not span both.
- Support path: Confirm the support route for ROCm-specific issues with your hardware vendor and the vLLM community.
Check your exact ROCm and GPU combination against the vLLM installation docs and the connector docs before you plan capacity.
The remaining connectors cover combined setups and cache offloading. MultiConnector lets you chain more than one connector in a single deployment, OffloadingConnector addresses moving KV cache to other memory or storage tiers, and FlexKVConnectorV1 is a further option in the same family. These fit teams whose cache layout spans several tiers, but they add configuration complexity that must be tested end to end.
- MultiConnector: Confirm which connectors you want to combine and whether the combination is documented for your vLLM version.
- OffloadingConnector: Confirm which memory or storage tier the offloaded KV cache will use and how latency changes when cache is fetched from it.
- FlexKVConnectorV1: Confirm the flexibility it provides for your cache topology and whether its requirements match your nodes.
- Testing burden: Confirm that each combined path has its own failure modes and needs its own test cases.
- Documentation status: Confirm the feature status for each connector, since several are experimental.
Review the connector list and status in the vLLM disaggregated prefilling docs before designing a multi-tier cache.
Configuration options and when each fits
This table compares the main choices for a disaggregated prefill and decode layout: the KV connector, how prefill and decode instances are roled, the path KV cache takes between them, and the router in front. Read each row against your latency goal, your hardware and your release, because connector support and maturity differ across vLLM versions.
| Choice | Option | When it fits | Confirm before you commit |
|---|---|---|---|
| KV connector | NixlConnector | Teams targeting NIXL-based KV transfer between instances on hardware where the transfer path is already validated. | Supported hardware, transport libraries and the release where your connector is stable or experimental. |
| KV connector | LMCacheConnectorV1 | Workloads that also want KV cache reuse and offload across requests, not only transfer between prefill and decode. | Compatible LMCache version, cache storage layout and how reuse interacts with your prompt privacy rules. |
| KV connector | MooncakeConnector | Environments already running Mooncake-style KV transfer infrastructure that the team can operate and monitor. | Required transfer backend, network prerequisites and the vLLM release line the connector is tested against. |
| KV connector | MultiConnector | Layouts that need to combine more than one connector behavior in one deployment. | Which combinations are supported, ordering rules and added troubleshooting surface. |
| KV connector | MoRIIOConnector | AMD ROCm environments only. | ROCm version support and current status in the vLLM docs for your release. |
| Instance roles | Dedicated prefill and decode instances | Long prompts with mixed traffic, where teams want prefill bursts kept away from token generation latency. | GPU counts per role, memory headroom for KV transfer and how each role is scaled. |
| Instance roles | Single combined instance | Most workloads where prompt size and load are modest, and operational simplicity matters more than separating phases. | Whether the latency gain from separation justifies a second fleet to run and monitor. |
| Transfer path | Same-node or same-fabric transfer | Prefill and decode on hosts with fast direct links, where transfer time is small relative to the request. | Interconnect type and whether transfers stay on the isolated network you planned. |
| Transfer path | Cross-node transfer over a general network | Layouts where prefill and decode must sit on different hosts with limited direct connectivity. | Measured transfer latency under load and whether it erodes the gain from separation. |
| Router or proxy | Disaggregation-aware proxy from the vLLM examples | Test and early pilot setups where the team wants to follow the documented reference path. | Whether the example proxy meets your authentication, logging and request limit needs in production. |
| Router or proxy | Custom or gateway-based routing | Organizations that already run an API gateway and need policy, auth and per-tenant controls at the edge. | How the gateway routes a request through prefill then decode, and how failures are retried. |
| Release status | Experimental feature set | Teams that can accept API and behavior changes between releases and test every upgrade. | The status label and known limits for each connector in the release you deploy, from the vLLM docs. |
How to set up disaggregated prefill in vLLM
This sequence separates prompt processing from token generation, so each stage runs on its own instances and you can confirm with metrics whether that split improves the latency your users see. It ends with a verified path where KV cache moves from prefill to decode and latency is measured against the baseline you recorded at the start.
Confirm the latency problem with metrics
Start by measuring the current serving setup before changing anything. Your platform team scrapes the Prometheus-format metrics that vLLM exposes at /metrics, which cover request counts, latency histograms and KV cache use. Record time to first token, inter-token latency and KV cache pressure under the traffic you actually see, with long prompts included. Disaggregation is worth testing only if the metrics show prompt processing delaying token generation for other requests. The output is a written baseline with the workload mix attached, which you will reuse in the final step.
Choose a connector and confirm hardware
Pick a KV connector from the set vLLM lists for disaggregated prefill: NixlConnector, LMCacheConnectorV1, MooncakeConnector, MoRIIOConnector (ROCm only), MultiConnector, OffloadingConnector and FlexKVConnectorV1. Match the choice to your accelerator vendor, network fabric and the support status of the connector in your vLLM release, which the vLLM disaggregated prefilling docs describe. Check that prefill and decode instances will run the same model and vLLM version on supported NVIDIA CUDA, AMD ROCm or Intel XPU hardware. The check is a signed-off decision record that names the connector, the hardware and the open risks, including that disaggregated prefill is labeled experimental.
Place instances on an isolated network
Deploy the prefill and decode instances, and any nodes they use, on a dedicated network segment that users and general corporate traffic cannot reach. The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption, so the isolation is a requirement, not an option. Restrict the connector's transfer ports to traffic between the prefill and decode instances. Your network team confirms the rules with reachability tests from an unapproved host, which should fail, and from each instance to its peer, which should succeed. The output is a network diagram and test log signed off by security.
Configure KV transfer on each instance
Set the KV transfer configuration on each instance so that one side acts as the producer that computes the prompt cache and the other acts as the consumer that receives it and generates tokens. Use the connector, role and address settings described in the vLLM disaggregated prefilling docs for your release, and confirm each key against that release's documentation rather than copying settings from older examples. Keep model, tokenizer, quantization and max length identical on both sides. Check the startup logs on both instances for connector initialization without errors. The output is a versioned configuration file for each instance that your team can review and roll back.
Front the instances with a router
Place a router or reverse proxy in front of the pair so that each request goes to a prefill instance first and then to a decode instance, while clients see one OpenAI-compatible endpoint. Configure the proxy to allowlist only the paths users need, such as /v1/chat/completions, and block /metrics, /pause, /resume and /abort_requests from outside the isolated segment. The vLLM security docs warn that the --api-key option alone does not protect every endpoint, so the proxy allowlist is part of the control. Verify with test requests through the router, including a rejected call to a blocked path. The output is a working request path and a proxy rule set reviewed against the endpoint list.
Verify KV transfer and latency with metrics
Run the same workload used for the baseline against the disaggregated path and scrape /metrics on each instance during the test. Confirm that KV transfer is happening by checking connector logs, error counts and KV cache usage on the decode side, and confirm that requests complete without transfer failures under load. Compare time to first token and inter-token latency with the baseline, and look at the tail of the latency histograms, not only the averages. If latency does not improve for your mix of prompts, treat that as a result, because disaggregation is aimed at latency and is not a throughput feature. The output is a comparison report that supports either keeping the design or reverting to the single-instance setup.
Security risks of splitting vLLM across instances
Disaggregated prefill and decode puts several vLLM processes on the network, and each one adds a path an attacker or a careless route can reach. The cards below pair each risk with the control that closes it, starting with the inter-node channel and ending with the proxy that decides which endpoints users can call.
Unauthenticated traffic between nodes
The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. When prefill and decode run as separate instances, KV cache and request state move between them, so anyone who reaches that channel can read or inject data. Place every prefill, decode and connector host on an isolated network segment, and confirm with your network team that no other tenant or workload shares it.
vLLM security docsConnector ports reachable from user networks
KV connectors such as NixlConnector, LMCacheConnectorV1 and MooncakeConnector open their own transfer paths alongside the API server. Each listening port is an exposure point that the API key does not cover. Before go-live, list every listening port on each instance, record which connector opened it, and confirm that firewall rules allow only the peer hosts that need it.
Metrics and health routes exposed
The /metrics endpoint reports request counts, token throughput, latency histograms and KV cache use, and /health reveals service state. The --api-key option does not protect either route. Keep both off any user-facing path and scrape them only from your monitoring network, so that prefill and decode internals are not visible to callers.
API key alone does not protect endpoints
The --api-key option covers /v1, /v2, /inference and /cohere, but not /invocations, /pause, /resume or /abort_requests. The docs warn against relying on it alone. A caller holding a valid key could still pause the engine or abort other users' requests. Treat the key as one layer and add the proxy control below as the primary gate.
Missing reverse proxy allowlist
The vLLM docs recommend a reverse proxy that allowlists only the endpoints meant for users. Build the allowlist from the endpoints your applications call, such as /v1/chat/completions or /v1/completions, and deny everything else by default. Test it with requests to the control endpoints from outside the cluster, and retest after each vLLM upgrade, because new routes may appear.
Ownership of the per-instance controls
Splitting one service into several instances multiplies the settings that must match on every host, including the API key, proxy rules, firewall policy and metrics scrape targets. A missed host can run with weaker settings than the rest. Keep these controls in version-controlled configuration, assign an owner for each instance, and review the deployed state against that configuration after every change.
Questions buyers ask about disaggregated prefill
Does disaggregated prefill reduce cost or raise throughput?
No. Disaggregated prefill is a latency-oriented architecture, not a throughput feature. It splits prompt processing (prefill) onto one set of GPU instances and token generation (decode) onto another, and moves the attention KV cache between them through a connector. That split can help keep time-to-first-token and inter-token latency steady under mixed loads, but it adds instances, a network path for KV transfer and more components to run. For cost-sensitive throughput, a single well-tuned deployment or data parallel replicas are usually the simpler starting point. Confirm the latency target you are solving for before you commit to the design.
What drives the effort and cost of a disaggregated setup?
Four factors dominate. First, the number and size of prefill and decode instances, which sets the accelerator bill and is recurring. Second, the interconnect between them, since KV cache transfer speed depends on the network and may call for high-bandwidth fabrics and GPU-direct transfer settings. Third, the connector choice: NixlConnector, LMCacheConnectorV1, MooncakeConnector and others each bring different dependencies, supported hardware and operational knowledge. Fourth, testing, including load tests that reproduce your real prompt lengths and concurrency. Ask any partner to price these four items separately in the written scope.
Does vLLM have a paid edition, and what does it cost to run?
vLLM is open-source under the Apache-2.0 license and has no paid edition. Its license cost is zero, so the running cost comes from accelerator capacity, the surrounding infrastructure (storage, networking, monitoring, load balancing), and the people who implement and operate it. For disaggregated serving, the accelerator and network costs usually exceed the software cost, because you run two pools of instances instead of one. Ask for a cost model that lists hardware, cloud or data center charges, engineering time and ongoing operations as separate lines.
How long does a pilot take, and what does it need from our team?
No fixed duration applies, because it depends on the model, the number of prefill and decode pools, the connector, and how much existing infrastructure you can reuse. A pilot normally needs a named platform owner, access to the target GPU nodes and network, a representative set of prompts with realistic lengths and concurrency, and a decision on which latency metrics count as success. Metrics such as request counts, latency histograms and KV cache use are exposed on the vLLM /metrics endpoint, so your monitoring team should be ready to collect them. Ask the partner to state the duration and client inputs in the written scope.
Can our own engineers build and run this without a partner?
Yes, if your team has experience operating multi-GPU inference, Kubernetes or Ray, and high-performance networking. The work is well documented in the vLLM disaggregated prefilling documentation, but that page describes features and configuration, not a production design for your network, security boundary or monitoring. Experienced teams often start with a pilot, then decide which parts to keep in-house. Common gaps are KV transfer verification, failure handling between pools, and load testing under realistic traffic. Confirm whether your team can cover those before choosing between self-building and a partner.
Is disaggregated prefill ready for production use?
Confirm the current status before planning production use. The vLLM documentation describes disaggregated prefilling as an experimental feature, and its connectors vary in maturity and hardware support. For example, MoRIIOConnector is limited to ROCm. Check the release notes for the vLLM version you intend to run, since minor releases ship about every two weeks and connector behavior can change between them. Treat the first production rollout as a controlled release with a rollback path to a standard deployment.
What security questions should we answer before connecting prefill and decode pools?
Start with the network. The vLLM security documentation states that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption, and must be protected by an isolated network. KV cache transfers between prefill and decode pools carry sensitive intermediate data, so they need the same isolation. Also review which endpoints are exposed: the --api-key option does not protect every endpoint, and the documentation recommends a reverse proxy that allowlists only user-facing routes. Ask for the trust boundary, access rules and logging plan in writing before deployment.
How DeployOpen scopes disaggregated prefill work
DeployOpen plans and builds vLLM disaggregated prefill and decode serving inside infrastructure you control, starting from the latency goals and connector choice that decide whether the split is worth running. Each engagement is fixed-scope, with the topology, validation and handover agreed in writing before work starts.
How we scope
- Confirm the latency goal, traffic pattern and prompt lengths before choosing a split topology.
- Record which KV connector is proposed, such as NixlConnector, LMCacheConnectorV1 or MooncakeConnector, and why.
- Agree in writing whether the experimental status of the feature is acceptable for your production use.
How we build
- Deploy separate prefill and decode instances with the connector configuration pinned to tested versions.
- Place prefill, decode and connector traffic on an isolated network, since inter-node communication is unauthenticated by default.
- Test failure handling, request routing and KV transfer behavior under load before any user traffic is switched over.
How we hand over
- Document the topology, connector settings, release pinning and the reasons each setting was chosen.
- Provide runbooks for restarting prefill or decode nodes and for falling back to a combined serving layout.
- Hand over Prometheus dashboards from the /metrics endpoint so your team can watch latency and KV cache use.
How we support
- Plan upgrades around vLLM's roughly two-week minor release cadence, with a test run before each change.
- Retest the connector path after engine, driver or model changes, and record the results.
- Offer ongoing support, upgrades and continuous testing as a retainer after handover.

