When a multi-node vLLM Ray cluster is the right layout
A Ray cluster is the right layout when one model does not fit on a single node and your team wants vLLM to use Ray as its multi-node backend. The split follows a fixed rule: vLLM applies tensor parallelism across the GPUs inside one node and pipeline parallelism across nodes. Tensor parallelism needs fast links between GPUs on the same server, so it stays local. Pipeline parallelism passes activations from one group of layers to the next, which tolerates the slower links between machines better. Before you commit, confirm the model's layer count and per-GPU memory against the parallelism layout in the vLLM parallelism and scaling documentation, and check that your interconnect between nodes is adequate for the traffic it will carry.
Ray is one of two multi-node backends vLLM documents. The other is vLLM's own multiprocessing backend, which is covered in a sibling topic. Choosing Ray means your operators must run and maintain a Ray head and workers alongside vLLM, and your security review must cover Ray's own node-to-node communication. The vLLM security documentation states that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption, so the cluster must sit on an isolated network regardless of which backend you pick. If your team has no Ray experience and the model fits a simpler layout, ask whether a single-node or multiprocessing setup meets the requirement first.
On cost, vLLM has no paid edition, so the spend comes from three places: accelerator capacity across every node, the surrounding infrastructure such as networking, storage and isolated network segments, and the people who build and operate the cluster. Ask any implementation partner for a quote that separates one-time work, such as the build, network design and verification, from recurring work, such as upgrades to vLLM and Ray, patching and on-call support. The number of nodes, the interconnect between them and the operating hours you need will shift that recurring cost most. Confirm these inputs with your hardware vendor and your own environment before you compare options.
How head, worker and client nodes connect in a Ray-based vLLM cluster
The diagram starts at the client, which reaches only the reverse proxy on the head node. The proxy forwards allowed API paths to the vLLM API server, which sits alongside the Ray head process. Worker nodes join the head over the isolated node network, and each contributes its GPUs to the same model. Check that no worker port is reachable from outside the isolated network, and that the proxy allowlist exposes only user-facing endpoints such as /v1/chat/completions.
Client traffic enters through the proxy, while nodes communicate only inside the isolated network.
Ray or the native multiprocessing backend for multi-node runs
If your organization already operates Ray clusters for data processing or other workloads, the Ray backend lets vLLM reuse skills, monitoring habits and cluster tooling you already have. The run_cluster.sh helper starts head and worker containers on each node, so the new work is mostly the vLLM layout rather than a new scheduler. Plan for the Ray version and the vLLM version to be checked together before each upgrade.
- Shared operating knowledge: Your engineers already know how head and worker nodes join, how the dashboard is reached and how failed workers are replaced.
- Version coupling: Confirm which Ray version your chosen vLLM release expects and whether it matches the Ray version already in use elsewhere.
- Separate cluster boundaries: Decide whether the inference cluster is its own Ray cluster or shares infrastructure with other jobs, since shared clusters widen the blast radius of an error.
- Dashboard exposure: Ray's web dashboard is another network service on the head node and must sit on the same isolated network as the rest of the cluster.
- Runbooks: Extend existing Ray runbooks with the vLLM health checks, not a parallel set.
Before you commit, confirm the Ray and vLLM versions you will run together and write down who owns upgrades for each.
Teams that do not run Ray often find the native multiprocessing backend easier to explain and audit. Fewer components mean fewer services to patch, fewer ports to isolate and fewer versions to track alongside the inference engine. The trade-off is that your team takes on the node rank and address configuration directly, and it has less existing tooling for cluster membership. The sibling topic on multi-node vLLM without Ray covers the nnodes, node-rank and master-addr flags in detail.
- Smaller attack surface: One fewer cluster framework means one fewer dashboard and set of internal ports to restrict.
- Simpler dependency list: Your software bill of materials and patch queue shrink when Ray is not a required component.
- Explicit configuration: Node addresses and roles are set in your own scripts or configuration management, which suits teams that prefer visible settings.
- Less generic tooling: You will build your own checks for node membership and startup failures.
- Headless workers: Worker nodes can run without an API server, which some teams find easier to reason about.
Ask your engineers to walk through a failed worker restart on a test cluster before choosing this path, because that is where the lack of a cluster manager is felt.
The run_cluster.sh helper is written for nodes you manage directly with containers. If your GPU nodes already run in Kubernetes, the vLLM documentation lists several Kubernetes deployment options, including KubeRay and LeaderWorkerSet, and those are usually a better starting point than hand-running the helper on each host. This page assumes a non-Kubernetes host layout, so the choice here is mainly about whether your platform team wants the cluster lifecycle handled by Kubernetes.
- Lifecycle ownership: Kubernetes scheduling, restarts and node drains replace manual container starts, but your team must understand how they interact with Ray.
- Network policy: Pod networking and network policies become the isolation mechanism instead of host firewall rules.
- Operator choice: Compare KubeRay with other listed options against the operators your platform team already supports.
- Secrets and images: Container image provenance and secret distribution follow your cluster standards.
- Mixed environments: Teams running some nodes outside Kubernetes should decide whether one cluster model covers both.
Confirm with your platform team whether Kubernetes is the intended runtime for GPU nodes, because that answer usually settles the backend question before any host-level setup begins.
Run_cluster.sh roles, flags and environment settings
This table lists the settings an operator chooses when bringing up a Ray-based vLLM cluster and the parallelism flags that must match that layout. Read each row as a decision: what the setting does, when it fits, and what breaks if it is wrong.
| Setting | What it controls | When it fits | What breaks if it is wrong |
|---|---|---|---|
| --head | Starts the Ray head node through run_cluster.sh on exactly one machine | The node you have chosen to coordinate the cluster, reachable by every worker | Workers have no head to join, so the cluster never forms and vllm serve cannot see the GPUs on other nodes |
| --worker | Starts a Ray worker container that joins the head on each additional node | Every other node that contributes GPUs to the model | A worker pointed at the wrong head address or started without a head joins nothing, and the GPU count reported by Ray stays low |
| VLLM_HOST_IP (per worker) | The address vLLM uses for communication on that specific node | Set to a unique address on each worker, on the interface that sits on the isolated cluster network | Copying one value to every node makes nodes address each other incorrectly, and the cluster hangs or fails at startup |
| Shell session or terminal | Keeps the helper process attached so the containers stay running | A dedicated session, such as a terminal multiplexer, per node while the cluster is in use | Closing the shell terminates the cluster, so the model service drops out without a clear error |
| --tensor-parallel-size | Splits each layer across the GPUs inside one node | Set to the number of GPUs in a single node when a node cannot hold the model alone | A value larger than the GPUs in one node fails or leaves GPUs idle, because tensor parallelism is meant to stay within a node |
| --pipeline-parallel-size | Splits the model's layers into stages across nodes | Set to the number of nodes when the model is larger than one node | A value that does not match the number of nodes in the Ray cluster leaves stages without GPUs or starts the service with fewer GPUs than planned |
| --distributed-executor-backend ray | Tells vLLM to use Ray to place and coordinate workers | Multi-node runs on a Ray cluster built with run_cluster.sh | If the backend does not match the Ray setup, vLLM may fall back to a different launch path that does not use the cluster you built |
How to build the cluster and check it before serving
This sequence takes a set of GPU nodes from an unverified network to a running Ray cluster that vLLM can use for pipeline-parallel serving. Each step closes with a check, so a fault is found before the model loads.
Confirm the network and software match on every node
The engineer responsible for the platform confirms that all nodes sit on an isolated network segment, can reach each other on the ports Ray needs, and run the same vLLM version and the same model files. The vLLM security documentation states that node-to-node traffic in a multi-node deployment is insecure by default, so isolation is a precondition, not an option. Check each node by comparing the installed vLLM version and the model checksum, and confirm that every node resolves the others by address. Do not start the cluster until all nodes report identical versions and reach each other.
Start the head node with run_cluster.sh
On the node chosen as head, the operator runs the vLLM run_cluster.sh helper with the head role. The helper starts a container on that node and initializes Ray as the head of the cluster. The head node is the one the serving command later targets, so record its address before moving on. Check that the Ray head process is running inside the container and that the head address is reachable from the worker nodes.
Start each worker with its own VLLM_HOST_IP
On every other node, the operator runs run_cluster.sh with the worker role and points it at the head. Each worker must have its own VLLM_HOST_IP value, set to the address that worker uses on the isolated network, because the value must be unique per worker. Repeating one address across workers is a common cause of a cluster that appears to start but fails to communicate. Check each worker's log for a successful join to the head before starting the next one.
Verify that Ray sees every node and GPU
From the head node, the operator checks the Ray cluster status and confirms that the node count matches the number of machines and that the GPU count matches the accelerators on each one. Missing nodes usually point to a network or address problem, and missing GPUs point to a driver or container device mapping problem. Do not continue until the reported totals match the hardware plan. Note that closing the shell that started run_cluster.sh terminates the cluster, so keep the sessions open or run them under a supervisor that the team controls.
Launch vllm serve with pipeline parallelism across nodes
From the head node, the operator runs vllm serve with the pipeline parallel size set to the number of nodes and the tensor parallel size set to the number of GPUs within each node. The Ray backend is used because the cluster was built with Ray. Confirm the chosen parallel sizes against the vLLM parallelism documentation before launch, since they must multiply to the total GPU count. Check the startup log for each stage loading its share of the model and for the server reporting that it is listening.
Send a test request and confirm output from each stage
The operator sends a small completion request to the OpenAI-compatible endpoint from a host inside the isolated network and reads the response. The request confirms that the model answers across all pipeline stages, not only the head. Review the logs on each worker for errors during the request, and record the cluster layout, versions and endpoint for the change record. The cluster is ready for application traffic only after this test passes and the endpoint is restricted as described in the security documentation.
How to confirm every node joined before traffic reaches the model
A healthy Ray cluster for vLLM is confirmed from the head node before any application traffic is routed to it. Check that Ray reports every expected worker node and every expected GPU as registered, that the total matches the layout you planned, and that no node has dropped out since startup. The model should then load on every pipeline stage, since a model that loads on the head but stalls on a worker is a common partial failure. Only when the cluster reports the full GPU count and the load finishes on all stages should you test the API. Send a simple request to the /health endpoint, then a request to a /v1 endpoint such as /v1/models from a client on the same isolated network, and confirm a valid response before opening any user path.
When a worker is missing, start with its container logs and the head node's view of the cluster. Look for the worker failing to reach the head address, repeated reconnect attempts, or errors that name a network interface or IP address. A wrong VLLM_HOST_IP is a likely cause, especially on hosts with several network interfaces, a VPN, a container bridge or a secondary NIC on the storage network. Each worker must advertise the address that the other nodes can reach on the cluster network, and that value must be unique per worker, so copy-pasted environment files are a frequent source of this fault. Confirm each host's address with the network team and check that the ports Ray uses are open between nodes before changing any vLLM setting.
Record the expected node count, GPU count, model name and VLLM_HOST_IP for each worker in your runbook, so the same checks can be repeated after restarts, upgrades or host replacement. Ask your operations team to alert on a node count below the planned value. The vLLM parallelism and scaling documentation covers the run_cluster.sh helper and the Ray setup this check depends on. Confirm the exact Ray status command and log locations for your installed Ray and vLLM versions in a test environment, because those details change between releases.
Securing Ray and inter-node traffic on an isolated network
A multi-node vLLM cluster on Ray has two audiences: the nodes that talk to each other, and the users who call the API. vLLM's security guidance treats these as separate problems, so the controls below are layered: isolate the cluster traffic, expose only the user endpoints through a proxy, and keep the nodes that run the cluster patched and access-controlled.
Isolate inter-node traffic
The vLLM security docs state that communication between nodes in a multi-node deployment is insecure by default, with no authorization or encryption. Place the head and worker nodes on a private network segment that user traffic cannot reach, and confirm with a port scan from a user subnet that Ray and vLLM cluster ports are closed. Ask your network team to document which firewall rules allow node-to-node traffic and nothing else.
vLLM security docsKeep the Ray dashboard private
The Ray dashboard and its ports give visibility into jobs, actors and cluster state, and should never sit on a user-facing address. Bind dashboard and client ports to the isolated interface, block them at the host and network firewall, and check the head node's listening sockets after each start. Treat dashboard access as administrator access, limited to named operators.
Know what --api-key does not cover
The --api-key option protects the endpoints under /v1, /v2, /inference and /cohere. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health, and the docs warn against relying on it alone. Test each path from an unauthenticated client and record the results as evidence of the control.
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 your applications call. Deny everything else by default, including admin and operational paths, and set request size and rate limits at the proxy. Confirm by sending requests to each blocked path through the proxy and verifying they fail.
Move metrics and admin paths off user routes
The /metrics endpoint exposes request counts, token throughput, latency histograms and KV cache use, which reveals load patterns and model behavior. Scrape it from your monitoring network on a separate listener or path that user traffic cannot reach, and keep /pause, /resume and /abort_requests reachable only from operator hosts. Document the scrape source address in your firewall rules.
Patch and control access to cluster nodes
Anyone with a shell on a Ray node can start, stop or reconfigure the cluster, so limit SSH and container runtime access to named operators using your identity system. Keep the operating system, container images, CUDA drivers and vLLM version on a planned patch cycle, and confirm the version running on each node matches the others before a model starts. Record who changed what and when.
Questions buyers ask before running vLLM on a Ray cluster
What drives the cost of running multi-node vLLM on Ray?
The software is free to use, so the cost comes from four places: accelerator capacity across every node, the network between those nodes, the infrastructure around them (storage, power, hosting or cloud accounts), and the people who build and operate the cluster. Accelerators are usually the largest line item, and a multi-node layout multiplies them. Network quality affects how much of that capacity you actually use, because cross-node traffic is slower than traffic inside one server. Operator time recurs through upgrades, monitoring, incident response and capacity changes. When you ask for a quote, request a breakdown by these components, the assumptions behind the accelerator count, and which items are one-time and which recur. vLLM is licensed under Apache-2.0 and has no paid edition, so no license fee should appear in that breakdown.
How long does a multi-node vLLM setup on Ray take?
The duration depends on the environment more than on the vLLM steps themselves. The timing is set by how quickly nodes are provisioned, whether the nodes already share a consistent GPU driver, container runtime and CUDA stack, how the isolated network is built, and whether model weights can be placed on storage every node can read. Teams with existing GPU hosts and internal container registries usually move faster than teams that must procure hardware or open network paths first. Ask for a fixed-scope plan that lists the node count, accelerator type, network layout, identity and access requirements, and the acceptance tests. Timelines should be agreed in writing against that scope before work starts.
What does our internal team need to provide?
Your team owns the environment that the cluster runs in. Expect to provide:
- Access to the GPU nodes, with a documented list of hostnames, IP addresses and the accelerator model on each node
- An isolated network segment for node-to-node traffic, with firewall rules that block other access to Ray ports
- Container runtime and GPU driver standards that match across nodes
- Shared storage or a model distribution method so every node loads the same weights
- Named owners for identity, secrets, logging and change approval
DeployOpen plans and implements the cluster inside infrastructure you control, so these inputs should be confirmed in the scoping stage rather than discovered during the build.
Can our own engineers run a Ray-based vLLM cluster without a partner?
Yes, if your team has experience with GPU hosts, container runtimes and private networking. The vLLM parallelism documentation describes the run_cluster.sh helper and the head and worker roles, so the first deployment is well documented. The harder part is sustained operation: keeping every node on matched versions, verifying that the cluster sees all accelerators after restarts, handling node failures and reviewing Ray's exposure on the network. Vendor documentation also warns that node-to-node traffic is insecure by default, so isolation must be designed and tested by your team. A common middle path is to have a partner build the first cluster and hand over runbooks, then keep the operating work in-house.
What do upgrades and monitoring involve after go-live?
Ongoing work falls into three groups. Upgrades: vLLM ships new minor releases about every two weeks, for example v0.31.0 on October 5, 2026, so you need a policy for which releases you adopt, a staging cluster to test them, and a rollback path. Ray, the CUDA stack and the container images need matching upgrades, and each change must be applied to head and worker nodes together. Monitoring: vLLM exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. Those metrics show whether all nodes contribute. Security checks: review Ray's ports and the reverse proxy allowlist after each change. Ask any partner for the upgrade cadence, the monitoring scope and whether the work is a one-time handover or a retainer.
When is a Kubernetes option a better fit than Ray on bare nodes?
Choose Kubernetes when your organization already runs a cluster platform, has staff who operate it, and wants scheduling, rollout and recovery handled by that platform. The vLLM Kubernetes documentation lists several routes, including native manifests, Helm, the vLLM production-stack, KubeRay and LeaderWorkerSet, so you can reuse existing tooling. Stay with a Ray cluster outside Kubernetes when you have a small, fixed set of GPU hosts, no existing cluster platform, or a need to keep the serving footprint simple. Compare the two on the staff you have, the change process you already follow and the monitoring you already run, not on the vLLM feature list alone.
Does running vLLM on a private cluster meet our compliance requirements?
A self-hosted cluster gives you control over where prompts, outputs and model weights live, but it does not by itself satisfy any regulation. Compliance depends on your controls around access, logging, encryption, change management and evidence collection. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that work. Ask your assessor which controls they expect to see for the serving platform, and confirm early which network, identity and logging evidence you must retain.
Operating the Ray cluster after go-live
Day-two work for a multi-node vLLM cluster on Ray starts with monitoring the serving endpoint and its metrics, because a cluster can look healthy at the Ray level while requests queue or fail. vLLM exposes Prometheus-format metrics at /metrics on its API server, covering request counts, token throughput, latency histograms and KV cache use, and the histogram buckets can be configured. Scrape that endpoint from your monitoring system, alert on rising latency and KV cache pressure, and confirm that /metrics is reachable only from your monitoring network, since the vLLM security guidance notes that this path is not covered by the --api-key option. The vLLM production metrics documentation lists the available series for your version.
Treat upgrades of vLLM and Ray as one change. The two must be compatible with each other, the container image that starts the head and worker nodes, and the model's runtime requirements. vLLM ships new minor releases about every two weeks, so plan a fixed review cadence rather than upgrading on release day. Stage each change on a small test cluster with the same node count and interconnect as production, run your model's load tests and a multi-node request check, then roll the workers and head in a defined order with a rollback image kept ready. Confirm the exact release notes for each version you adopt before you schedule the change. The vLLM GitHub releases page is the record to check.
Plan for node failure and cluster restarts as routine events. Because run_cluster.sh starts containers across nodes and closing a shell terminates the cluster, run the helper under a supervisor such as systemd or a container restart policy, and document who restarts the head node first and how workers rejoin it. Each worker keeps its own VLLM_HOST_IP, so a replacement node must be given its own address, not a copy of a failed node's configuration. Keep the cluster definition itself in version control: the node inventory, container image tag, run_cluster.sh arguments, per-worker VLLM_HOST_IP values, model path, and vLLM and Ray versions. Review changes through the same process as application code. For failure diagnosis, the vLLM operations and troubleshooting pages are the next read, and the upgrade pages cover moving between releases.
How DeployOpen scopes and delivers this work
The sequence moves from a written scope to a documented, verified Ray cluster that serves vLLM on an isolated network. Each step ends with a named output so the client can check progress before the next step begins.
Agree the scope in writing
DeployOpen and the client agree the scope in writing before work starts. The document names the nodes and accelerators in each node, the model and parallelism layout the cluster must support, the endpoints that will be exposed to users, and who owns each system. The client's security and platform leads sign off on the scope. The step is complete when the signed scope lists every node, network segment and deliverable.
Review the network and node design
DeployOpen reviews the planned network with the client's infrastructure team. The review covers which nodes share an isolated network segment, how Ray and vLLM traffic is routed between nodes, which host interfaces carry cluster traffic, and whether container images and model weights are reachable without internet access. It also checks that each node's GPUs, drivers, container runtime and shared memory settings match the planned layout. The step closes with a written design record that the client approves.
Prepare the host and container baseline
DeployOpen prepares each node with the same driver, container runtime, vLLM image and model storage path, so every worker starts from an identical baseline. The team confirms that the vLLM image version matches the version named in the scope and that each node can read the model files from the agreed location. Configuration that differs between nodes is recorded, including the per-worker host IP. The step is complete when a configuration check passes on every node.
Start the head and worker nodes
DeployOpen starts the Ray head on one node and joins each worker with the vLLM run_cluster.sh helper, which launches the containers and initializes Ray with the head or worker role. Each worker is started with its own VLLM_HOST_IP value, and the team checks that no two workers share an address. Sessions are run in a way that keeps the cluster alive after the operator disconnects, since closing the shell that started the helper terminates the cluster. The step is complete when the head reports every expected node as joined.
Verify the cluster and serving path
DeployOpen checks that Ray reports the expected GPU count and node membership, then starts vLLM with the agreed parallelism settings and sends test requests to the OpenAI-compatible endpoints. The team reviews logs for the transport and communication errors that point to a broken network path. Load is applied at a level the scope defines to confirm the cluster stays stable. The step closes with a verification report listing the commands run, the results and any open issues.
Run the security review of the cluster
DeployOpen reviews the cluster as an attacker on the same network would see it. Because vLLM documents that node-to-node communication is insecure by default, the review confirms that cluster traffic is limited to the isolated segment and that no Ray or cluster port is reachable from user networks. It also checks that the API key does not stand alone, that only user-facing endpoints are allowlisted through a reverse proxy, and that the metrics and health endpoints are restricted. Findings are ranked, fixed where agreed, and retested. The step is complete when the client accepts the findings log.
Hand over with documentation
DeployOpen delivers the cluster documentation: the node inventory, network diagram, startup and shutdown procedure, environment settings, the verification report and the security findings with their status. The team walks the client's operators through a restart and a failed-worker recovery so the procedure is tested by the people who will run it. Upgrade and support terms are set out separately if the client wants them. The step is complete when the client's operators run the procedure without DeployOpen present and the handover record is signed.
How DeployOpen plans, builds and supports vLLM clusters
DeployOpen plans, builds, documents and supports self-hosted multi-node vLLM inside your own infrastructure, so the Ray cluster, its network isolation and its operating procedures are agreed before any node is started. The work follows a written scope from node inventory through handover, and the same records remain with your team afterward.
How we scope
- Inventory head and worker nodes, GPU models, host IP addresses and the network path between them before choosing a layout.
- Confirm the model, parallelism plan and vLLM version with your team, since these set how many nodes Ray must manage.
- Agree in writing which isolated network, container runtime and Ray dashboard access the engagement covers.
How we build
- Configure run_cluster.sh on each node with a unique VLLM_HOST_IP per worker and a documented head address.
- Verify that Ray reports the expected GPUs across all nodes before any model is loaded for serving.
- Test the isolated network boundary, blocking Ray and vLLM node traffic from anything outside the cluster, and record the results.
How we hand over
- Deliver runbooks for starting, stopping and restarting the cluster, including the effect of closing a shell session.
- Document the node inventory, network rules, configuration values and the reasons behind each choice.
- Walk your operators through a failed worker scenario and the checks used to confirm the cluster has recovered.
How we support
- Offer ongoing support, planned vLLM upgrades and continuous testing as retainers after the initial handover.
- Review the cluster again when the vLLM release line changes, since new minor releases ship about every two weeks.
- Keep the written scope as the reference for any change requests, so cost and timing stay traceable to agreed work.

