Multi-node vLLM without Ray using multiprocessing

Running vLLM across nodes with its native multiprocessing backend removes a Ray cluster from the stack, but it shifts the network isolation, startup ordering and verification work onto your team.

On this page

Multi-node vLLM without Ray using multiprocessing: when teams drop Ray

Teams reach this decision when a model is too large for one node and they must choose how the nodes coordinate. vLLM supports two multi-node backends: Ray, and its own multiprocessing backend. According to the vLLM parallelism and scaling docs, the model is split with tensor parallelism across the GPUs inside each node and with pipeline parallelism across nodes. The multiprocessing backend covers that cross-node layout without a separate Ray cluster to install, start, monitor and upgrade. The decision therefore turns on whether your team wants one fewer distributed runtime to operate, and whether your workload and platform fit the backend's supported layouts. Confirm those layouts against the current docs before you commit, since the supported combinations change between releases.

Dropping Ray simplifies operations and security in concrete ways. Fewer moving parts means fewer services to patch, fewer ports and dashboards to secure, and a smaller set of components for your change process to cover. The vLLM security docs, however, state that all communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption, and must be protected by placing the nodes on an isolated network. That requirement applies with either backend, so removing Ray does not remove the need for an isolated network, host firewall rules and a documented list of which nodes may join the group. Your security team should review the inter-node traffic path before the first deployment, not after the cluster is running.

Before choosing the multiprocessing backend, check three things with your engineers. First, confirm that your model layout needs only pipeline parallelism across nodes and tensor parallelism within them. Second, confirm which features your serving configuration uses, because some combinations do not work with pipeline parallelism. Third, test the chosen backend on the exact node count, GPU model and network you plan to run in production. Keep Ray as the fallback if any of these checks fail. Record the decision and its reasons so the platform team can revisit it when the vLLM release line changes.

Which multi-node flags to set and when each fits

This table compares the flags that define a multiprocessing layout with the operational concerns Ray otherwise handles. Read the flag rows first, because a mismatch in node count, rank or address stops the cluster from forming. The main takeaway is that dropping Ray moves coordination work to your team, so confirm each value against the parallelism docs before any node joins.

Setting or concernMultiprocessing backendRay backendWhat to confirm
nnodesSets how many nodes form the cluster. Every node must start with the same value.Not set this way. Cluster size follows the Ray nodes that join the head.Exact flag name and that all nodes agree, in the parallelism and scaling docs.
node-rankGives each node a unique index, with the primary node at rank 0. A duplicate or wrong rank can hang startup.Not used. Each worker registers with the Ray head node address.Rank numbering rules and which node must be rank 0.
master-addrAddress workers use to reach the primary node. A wrong or unreachable address stalls the join.Replaced by the Ray head address and per-worker host IP settings.Which address to use on hosts with several network interfaces, and the port it needs.
headlessRuns a worker node's GPUs without an API server, so only the primary node serves requests. Omitting it on workers can leave extra servers trying to bind ports.Not applicable. Ray workers join the cluster and no per-node API mode is set this way.Which node runs the API server and how headless mode behaves in your vLLM version.
tensor-parallel-sizeGPUs sharding each layer inside a node. A value the model cannot be split across fails at load time.Same setting, applied per node. Layout rules do not change with the backend.Supported combinations and whether tensor parallelism must stay inside each node.
pipeline-parallel-sizeNumber of stages spread across nodes. Usually total GPUs equal tensor size times pipeline size, so a wrong product leaves GPUs idle or fails startup.Same setting. Ray handles placement of stages across the cluster.Features that do not combine with pipeline parallelism in your version.
Startup and coordinationYou start each node with matching flags, in an order you script and check.Ray head and workers start through its cluster setup and status checks.Startup order, and how a failed node is detected and restarted.
Network exposureNode-to-node traffic is unauthenticated and unencrypted by default, so the node network must be isolated.The same isolation applies to Ray ports, and Ray adds its own services that also need protection.Required ports and the isolation controls the security docs describe.
Operational footprintFewer moving parts: no Ray cluster to install, patch or monitor, but more flag bookkeeping on your side.One more platform to version, patch, monitor and secure alongside vLLM.Which Ray version your chosen vLLM release expects, if you keep Ray.

Setting up a two-node vLLM group without Ray

This sequence takes a two-node vLLM group from a confirmed release and hardware baseline to a head node and a headless worker that join one multiprocessing group and answer requests through the head node's OpenAI-compatible endpoint. Each step ends with a check you can verify before moving on.

  1. Confirm release, hardware and node parity

    Your platform or infrastructure team pins one vLLM release on both nodes and confirms that each node has the same GPU model, driver, CUDA or ROCm stack, container image and model files. Use the release list in the vLLM GitHub releases to choose a version, then confirm it supports your accelerator in the installation docs. Done means both nodes report the same vLLM version and the same GPU count and model in a quick environment check. Mismatched versions are a common cause of group formation failures, so treat this as a gate, not a suggestion.

  2. Isolate the inter-node network

    Your network team places both nodes on a dedicated network segment that only the two nodes and your approved clients can reach. The vLLM security docs state that node-to-node traffic is unauthenticated and unencrypted by default, so this isolation is a requirement, not an option. Open only the port used for group coordination and the API port, and block everything else between segments. Done means each node can reach the other on the coordination port and an outside host cannot reach that port at all, which you verify with a connectivity test from each side.

  3. Set node count, rank and master address on the head node

    Your platform engineer starts the head node with the flags that define the group: the total node count, the head node's rank of zero, and the address other nodes use to reach it. Illustrative only: a command might pass a node count of 2, a node rank of 0 and a master address on the isolated segment, alongside your model and parallelism settings. Confirm the exact flag names and their accepted values in the vLLM parallelism and scaling docs before you run anything. Done means the head node logs that it is waiting for the second node rather than failing on startup.

  4. Start the headless worker node

    On the second node, your engineer starts vLLM in headless mode with node rank 1 and the same master address, model and parallelism settings as the head node. A headless node joins the group to hold its share of the model but does not expose its own API server, so clients send requests only to the head node. Confirm the headless and rank flags in the vLLM online serving docs because the exact names depend on your release. Done means the worker log shows it connecting to the head node address without repeated retry errors.

  5. Confirm group membership in both logs

    Your operations engineer reads the startup logs on both nodes and checks that each node reports the expected rank and total node count, that the GPUs on both nodes are initialized, and that the model finishes loading across the group. Watch for timeouts, NCCL errors or repeated reconnect attempts, which point to network or version problems rather than model issues. Done means the head node log shows both nodes as members and the server reports ready, and the worker log shows the same group without errors. Save these log excerpts as the baseline for later upgrades.

  6. Send a test request to the OpenAI-compatible endpoint

    Your application or QA engineer sends one small request to the head node's OpenAI-compatible chat or completions endpoint from a client on the approved network, using a model name that matches the served model. Illustrative only: a curl call with a short prompt and a low token limit is enough to show that the group generates text. Done means the response returns a valid completion and the head node's log records the request, while the worker node shows no request handling of its own. Repeat the test a few times to rule out a single lucky response.

  7. Check metrics and the access boundary

    Your security or platform engineer confirms that the group is reachable only from the endpoints you intend to expose and that monitoring sees the expected values. The vLLM security docs note that the --api-key option does not cover every route, including /metrics and /health, so confirm which paths are reachable from users and place a reverse proxy in front that allowlists only the user-facing endpoints. Then scrape the Prometheus-format metrics at /metrics on the head node and confirm request counts and KV cache values appear. Done means unauthorized paths return denials from the proxy and the metrics show traffic from your test request.

How head and headless nodes share one model

The diagram starts at the user network, where clients reach only a reverse proxy that allowlists the endpoints meant for users. The proxy forwards requests to the head node, which runs the API server and schedules work across the model shards. Headless worker nodes join the head through master-addr on the isolated node network, and inter-node traffic stays there. Check that the boundary holds: no worker should be reachable from the user network, and the proxy should expose nothing beyond the user endpoints.

Clients reach only the proxy, and nodes coordinate on an isolated network.

Securing inter-node traffic and API exposure

Without Ray, the nodes of a vLLM cluster talk to each other directly, and the API server exposes more endpoints than the --api-key flag protects. The cards below cover the controls that close those gaps, in the order a team should verify them before the cluster takes user traffic.

Isolate inter-node communication

The vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption. Place every node of the multiprocessing cluster on a dedicated network segment that only cluster members and the approved gateway can reach. Confirm with your network team that the segment blocks access from user subnets and from other workloads in the same cloud account or data center.

vLLM security docs

Check the master address exposure

The --master-addr value is the rendezvous point the other nodes use to join the run, so it must resolve only on the isolated segment. Verify that the port used for coordination is not published on a node's public or user-facing interface. Review host firewall rules on each node, since a permissive default on one machine can expose the whole cluster.

Understand what --api-key covers

The --api-key option protects the /v1, /v2, /inference and /cohere endpoints only. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. A caller who reaches /pause or /abort_requests without a key can disrupt serving, so treat the key as one layer and test each unprotected path from outside the trusted network.

Security docs

Allowlist endpoints at a reverse proxy

The vLLM docs recommend a reverse proxy that forwards only the endpoints meant for users, such as the OpenAI-compatible /v1 routes. Deny everything else by default, including the administrative paths listed above. Test the proxy with requests to each blocked path and confirm that the response is a rejection, not a pass-through to the backend.

Restrict Prometheus metrics access

The API server publishes Prometheus-format metrics at /metrics, including request counts, token throughput, latency histograms and KV cache use. Because the path is outside the --api-key scope, allow scrapes only from your Prometheus servers on the monitoring network. Decide whether metric labels or histogram buckets reveal anything about tenants or workloads that should stay internal.

vLLM metrics docs

Protect health and control paths

The /health endpoint is typically polled by load balancers and orchestrators, so it must stay reachable from those systems while remaining hidden from users. Keep /pause and /resume reachable only from operator hosts, and log every call to them. Ask your platform team to document which caller uses which path so that the proxy rules match real operational needs.

Questions teams ask before running vLLM across nodes

What does it cost to run vLLM across nodes without Ray?

vLLM itself has no paid edition, so the cost comes from accelerator capacity, the surrounding infrastructure, implementation and the people who operate it. Accelerator capacity is usually the largest recurring line, and it is set by how many nodes and GPUs the model layout needs. Infrastructure adds the isolated network between nodes, storage, monitoring and backups. Implementation and operations are one-time and recurring people costs. Ask any partner for a quote that separates one-time build work from recurring operations and names the hardware it assumes.

How long does a multi-node vLLM rollout take?

The timeline depends on how many nodes are involved, whether the isolated network already exists, how the team provisions GPU hosts and how many environments must be validated before production. The build sequence is short in principle: confirm node reachability, start the head node, attach headless nodes with the right node rank and master address, then verify the cluster serves requests. Most of the schedule goes to network isolation, access controls and load testing. Ask for a duration tied to a written scope rather than a generic estimate.

What does the work need from our team?

You need people who can administer GPU hosts and Linux networking, manage container images and drivers, and own the isolated network between nodes. Someone must also decide who can reach the API, since vLLM documents that inter-node communication is insecure by default and has no authorization or encryption. Platform, security and application owners should agree on endpoint exposure early. Expect to supply hardware access, change windows, a test model and a named owner for on-call response.

Can our own team do this in-house?

Yes, if the team already runs GPU workloads and can manage a private network between nodes. The multiprocessing backend has fewer moving parts than a Ray cluster, which lowers the skill bar for day-to-day operation. The harder parts are judgment calls: how to lock down node-to-node traffic, which endpoints to expose, how to size GPUs for the workload and how to upgrade vLLM releases, which ship about every two weeks. Teams without this experience often use a partner for the first build and then operate it themselves.

How does operating multiprocessing compare with operating Ray?

Multiprocessing runs vLLM's own coordination across nodes, so there is no separate Ray cluster to install, secure, monitor and upgrade. Ray adds a head and worker cluster with its own dashboard, ports and version compatibility to track alongside vLLM. The trade-off is that Ray offers more tooling for cluster management, while the multiprocessing path asks you to script startup carefully and monitor each node yourself. Confirm the supported parallelism layouts for your model before choosing, because the two backends are not interchangeable in every configuration.

What is the security exposure between nodes?

The vLLM security documentation states that communication between nodes is insecure by default, with no authorization or encryption, so nodes must sit on an isolated network. Plan a dedicated subnet or equivalent segmentation, restrict which hosts can reach the node-to-node ports, and keep the API server away from untrusted networks. Remember that the --api-key option does not protect every endpoint, so a reverse proxy should allowlist only the routes users need. Ask your security team to review this design before the first production start.

What drives the scope of a multi-node engagement?

Scope follows the model size, the number of nodes, the parallelism layout, the network between nodes, the API exposure you require and the monitoring and backup standards you must meet. Each added node, environment or compliance requirement adds build, testing and documentation work. Integration with an existing gateway, identity provider or metrics stack also changes the effort. Engagements are normally fixed-scope, with deliverables and timelines agreed in writing before work starts, and ongoing support can be added as a retainer.

Operating a multi-node group after go-live

Start operations by treating the group as one serving unit with several machines, not as independent servers. The vLLM server answers on the head node, so a healthy head node does not prove that every worker still holds its share of the model. Scrape the Prometheus-format metrics that the API server exposes at /metrics and alert on request counts, token throughput, latency histograms and KV cache use. Set alerts on a sustained drop in throughput or a rise in latency rather than on single samples, and confirm with your own load tests which thresholds fit your workload. Keep /metrics off the user-facing path, because the vLLM security docs note that the --api-key option does not protect it. Also check the worker processes themselves with host-level tooling, since a worker that has died can leave the head node serving errors without an obvious signal in the request metrics.

Plan upgrades as a group event. Every node in a multiprocessing run must run the same vLLM version, and vLLM ships new minor releases about every two weeks, so a fleet left unmanaged will drift quickly. The release cadence is documented in the GitHub releases, for example v0.28.0 on August 26 and v0.31.0 on October 5, 2026. Choose a version, test it on a staging group with the same --nnodes layout, and then roll the production group in a window you have scheduled with the business. Record the exact version and launch flags on every node so that a rollback is a known command, not a reconstruction. Confirm with your change board whether a full stop of the group is acceptable, because a partial upgrade of a multi-node group is usually not a safe state to serve traffic from.

After a node failure, stop the group before restarting anything. Because the nodes share one model and one set of communication channels, a lone restarted worker will not rejoin a group that is still running with stale state. Stop the remaining processes on every node, confirm the failed host is healthy, then start the headless nodes first with their --node-rank and --master-addr values, and start the head node last so it finds all workers at startup. Keep the same flags for each rank so that the layout does not change between starts. Verify the group with a test request and with the metrics before you return it to users. If your organization already runs Kubernetes, the vLLM docs list vLLM on Kubernetes options such as native manifests, Helm, KubeRay and LeaderWorkerSet. Those options move restart, placement and health handling into the cluster, which can reduce manual steps, but they add a control plane you must also operate, patch and secure. Weigh that cost against the size of your team before choosing it.

How DeployOpen scopes and delivers multi-node vLLM

DeployOpen plans and builds multi-node vLLM on the native multiprocessing backend inside infrastructure you control, with the node layout, network isolation and endpoint exposure agreed in writing before any node is started. We hand over a configured cluster, the runbooks your team needs to operate it, and test evidence that shows how it behaves when a node is lost.

How we scope

  • We map which nodes, GPUs and network segments will form the cluster, and confirm the vLLM release it will run.
  • Engagements are fixed-scope, with the node count, flags, deliverables and timelines agreed in writing first.
  • We confirm whether a separate isolated network exists for inter-node traffic, since vLLM treats that traffic as unauthenticated by default.

How we build

  • We set the nnodes, node-rank and master-addr values per host, then start headless worker nodes against the head node.
  • We place the API endpoint behind a reverse proxy that allowlists only user-facing paths, and do not rely on --api-key alone.
  • We test model loading, cross-node requests and the Prometheus metrics at /metrics before the cluster is accepted.

How we hand over

  • You receive the configuration, launch scripts, network and firewall rules, and a record of the versions and flags used.
  • Runbooks cover starting and stopping nodes in order, rejoining a failed worker and checking health on each node.
  • We walk your platform and security teams through the isolation design so they can review it against their own controls.

How we support

  • Ongoing support, upgrades across vLLM minor releases and continuous testing are available as retainers.
  • We retest the cluster after each vLLM upgrade, since flags and multiprocessing behavior can change between releases.
  • Ask any provider to confirm how they test node failure, network changes and endpoint exposure before the work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.