Playbook · DGX Spark cluster

Two DGX Sparks, a model on each, behind one address.

Each Spark runs its own complete model server. A small load balancer on the first one gives your apps a single address.

One address is not full backup. Here the balancer runs on the first Spark. If that Spark stops, the address stops too, even though the second server is still running.

How to serve one model from two DGX Sparks at one address

  1. Start the same model with vLLM on each Spark, published only on its cluster link address, with an API key.
  2. Run NGINX on the first Spark to share requests between the two.
  3. Check each server by itself, then the single address, then stop one and try again.

Checked on 26 November 2026 against: vLLM's NGINX, Docker and security documentation and NVIDIA's vLLM playbook. We have not yet run this playbook start to finish on our own hardware.

Watch, then follow

Two copies on two DGX Sparks: decide, then set up, in two parts.

Part 1 of 2: Decide and configure

Video, part 1: Decide and configure. It covers: Requests are shared. Not much else; Pick a method; Failover is partial; Match both copies. Chapters and transcript
Read the words of this video

Two copies, one address. Two DGX Sparks, a whole model on each. Here's what to decide first.

The AI stack. We're starting from the machines: two DGX Sparks, joined by their cable.

Requests are shared. Not much else. A load balancer shares new requests. Each one runs wholly on one Spark. Its CPU work goes there too, such as turning text into tokens. Model memory, caches, files and settings stay separate.

Pick a method. With no method line, NGINX takes the servers in turn. That's round robin. Least connections picks the server with fewer open. This guide starts there. IP hash follows the caller's address. Through an SSH tunnel, all callers look alike.

Failover is partial. After repeated failures, NGINX leaves a server out for a while. A chat request already sent to a stopped Spark isn't passed on by default. A reply that has started can't move to the other Spark. And if the first Spark stops, the one address stops with it.

Match both copies. Use the same image, model, version and settings on both Sparks. Use the same API key on both. It protects some paths, not all. Docker doesn't restart these containers after a reboot unless you ask.

Now you can decide. Part two sets it up, checks it, and stops it.

Slides for this part, at your own pace:

9 steps

  1. Diagram for step 1, Know what is shared: Requests are shared. Not much else
    Diagram: Requests are shared. Not much else, for step 1

    Decide

    1. Know what is shared

    The balancer shares new requests. One request never uses both GPUs.

    The full table

  2. Diagram for step 2, CPU work follows the request: Requests are shared. Not much else
    Diagram: Requests are shared. Not much else, for step 2

    Decide

    2. CPU work follows the request

    Each Spark runs its own vLLM processes. Nothing else moves processor work across.

    How the CPU work is divided

  3. Diagram for step 3, Plan for two of everything: Requests are shared. Not much else
    Diagram: Requests are shared. Not much else, for step 3

    Decide

    3. Plan for two of everything

    Memory, cache, model files, settings and updates are separate.

  4. Diagram for step 4, Pick a balancing method: Pick a method
    Diagram: Pick a method, for step 4

    Configure

    4. Pick a balancing method

    This guide starts with least_conn. It counts connections, not GPU load.

    Every method

  5. Diagram for step 5, Think before ip_hash: Pick a method
    Diagram: Pick a method, for step 5

    Configure

    5. Think before ip_hash

    Through the SSH tunnel every caller has the same local address, so expect one Spark to get everything.

  6. Diagram for step 6, Know what failover loses: Failover is partial
    Diagram: Failover is partial, for step 6

    Configure

    6. Know what failover loses

    NGINX does not pass a sent POST to the other server by default. Your app should send it again.

    Failure settings and defaults

  7. Diagram for step 7, Accept the single point: Failover is partial
    Diagram: Failover is partial, for step 7

    Configure

    7. Accept the single point

    The balancer is on the first Spark. If that stops, so does the address.

  8. Diagram for step 8, Match both copies: Match both copies
    Diagram: Match both copies, for step 8

    Configure

    8. Match both copies

    Same image, model, model version and settings.

    vLLM settings and defaults

  9. Diagram for step 9, Choose what happens after a reboot: Match both copies
    Diagram: Match both copies, for step 9

    Configure

    9. Choose what happens after a reboot

    With no restart policy you start the containers yourself.

    Restart policy

Part 2 of 2: Set up, check and stop

Video, part 2: Set up, check and stop. It covers: One key; Start vLLM; Add NGINX; Prove both work; Stop one, on purpose; Stop and undo. Chapters and transcript
Read the words of this video

Set up, check, stop. Now let's set up two copies. We haven't run these steps on hardware.

One key. Make one long random key. Type it in on each Spark, so it stays out of your shell history.

Start vLLM. This loads the GPU and much of the memory, so check both Sparks are free. Set each Spark's own link address, the image and the model. Then start the container. Follow its log until it says the application has started.

Add NGINX. On the first Spark, write the NGINX file from the page, naming both link addresses. Start NGINX. It listens only on that Spark. From your computer, open an SSH tunnel to reach it.

Prove both work. Check each server's health by itself. List the models through the one address, with your key. Send several requests at once, and watch both logs.

Stop one, on purpose. The next test stops a model server, and cuts off whatever it's answering. Stop the second one, then send a new request. It should still be answered. Then start it again, and wait for it to load.

Stop and undo. Stopping ends any replies in progress. Stop the balancer first. Then stop the model server on both Sparks.

Check, then measure. The page shows how to remove it all, and fixes by symptom.

Slides for this part, at your own pace:

15 steps

  1. Diagram for step 1, Make one key: One key
    Diagram: One key, for step 1

    Set up

    1. Make one key

    Keep it in your password manager.

    openssl rand -hex 32
  2. Diagram for step 2, Enter it on both Sparks: One key
    Diagram: One key, for step 2

    Set up

    2. Enter it on both Sparks

    It is not shown as you type.

    read -rs VLLM_API_KEY && export VLLM_API_KEY
  3. Diagram for step 3, Start vLLM on both: Start vLLM
    Diagram: Start vLLM, for step 3

    Set up

    3. Start vLLM on both

    This starts a model server, which loads the GPU and much of the memory. Check both Sparks are free.

    Set LINK_IP, VLLM_IMAGE and MODEL first. The page shows every line.

    The whole command

  4. Diagram for step 4, Wait for it to start: Start vLLM
    Diagram: Start vLLM, for step 4

    Set up

    4. Wait for it to start

    The first start downloads the model and can take a long time.

    docker logs -f vllm-copy
  5. Diagram for step 5, Write the NGINX file: Add NGINX
    Diagram: Add NGINX, for step 5

    Set up

    5. Write the NGINX file

    Put it in nginx_conf/sparks.conf on the first Spark.

    The file, on this page

  6. Diagram for step 6, Start NGINX: Add NGINX
    Diagram: Add NGINX, for step 6

    Set up

    6. Start NGINX

    It listens only on the first Spark itself.

    docker run -d --name spark-front --network host \
      -v "$PWD/nginx_conf:/etc/nginx/conf.d:ro" nginx
  7. Diagram for step 7, Open the tunnel: Add NGINX
    Diagram: Add NGINX, for step 7

    Set up

    7. Open the tunnel

    Run it on your computer and leave it open.

    ssh -N -L 8080:localhost:8080 USER@my-spark.local
  8. Diagram for step 8, Check each server: Prove both work
    Diagram: Prove both work, for step 8

    Check

    8. Check each server

    Both should return without an error.

    curl --fail http://FIRST-SPARK-LINK-ADDRESS:8000/health
    curl --fail http://SECOND-SPARK-LINK-ADDRESS:8000/health
  9. Diagram for step 9, Check the one address: Prove both work
    Diagram: Prove both work, for step 9

    Check

    9. Check the one address

    Your model should be listed.

    curl http://localhost:8080/v1/models -H "Authorization: Bearer $VLLM_API_KEY"
  10. Diagram for step 10, See both take work: Prove both work
    Diagram: Prove both work, for step 10

    Check

    10. See both take work

    Send several requests at once and read both logs.

    docker logs -f vllm-copy
  11. Diagram for step 11, Before the failover test: Stop one, on purpose
    Diagram: Stop one, on purpose, for step 11

    Check

    11. Before the failover test

    The next step stops a model server. Anything it is answering is cut off.

    Pick a quiet time and tell anyone using it.

  12. Diagram for step 12, Stop the second server: Stop one, on purpose
    Diagram: Stop one, on purpose, for step 12

    Check

    12. Stop the second server

    This stops a model server.

    On spark-two. Then send a new request.

    docker stop vllm-copy
  13. Diagram for step 13, Start it again: Stop one, on purpose
    Diagram: Stop one, on purpose, for step 13

    Check

    13. Start it again

    It takes work again after it has loaded.

    docker start vllm-copy
  14. Diagram for step 14, Stop the balancer: Stop and undo
    Diagram: Stop and undo, for step 14

    Stop

    14. Stop the balancer

    Stopping ends any replies in progress.

    On the first Spark.

    docker stop spark-front
  15. Diagram for step 15, Stop both servers: Stop and undo
    Diagram: Stop and undo, for step 15

    Stop

    15. Stop both servers

    Stopping ends any replies in progress.

    On each Spark.

    docker stop vllm-copy

    How to remove it all

Written from the makers' own documents, read on 26 and 27 November 2026 and linked below. We have not run these steps on hardware.

Is this the one?

When should each DGX Spark run its own copy?

Best for

A model that fits on one Spark, used by several people, apps or batch jobs at once.

Strengths

Each server is an ordinary single-Spark setup. No data about a request's calculation crosses the cable. You can update one while the other serves, though requests in progress on the one you stop are lost.

Drawbacks

It does not let you run a bigger model, and a single request is not faster. Each Spark stores the whole model, and each keeps its own cache, so a follow-up question may land on the Spark that has not seen the first.

Compare all five in the cluster method chooser.

Decide first

What to decide before you run a model on each DGX Spark.

DecisionYour choicesWhat it changes
Same model on both?The same model, revision, image and settings, or notOne address assumes either Spark can answer any request. If the two differ, answers can differ with the Spark that takes the request.
What shares the requests?NGINX, LiteLLM, SGLang's router, or vLLM's own data parallelThe balancing rules, and what else you have to run.
How are they shared?The balancing methodWhich Spark gets the next request.
What if one Spark stops?Failure counts, time-outs and retriesHow fast the other takes over, and which requests are lost.
Where does the balancer run?On the first Spark (this page), or on a third machine you look afterThe balancer's machine is a single point of failure. We have written no steps for a third machine or for a second balancer.
Back after a reboot?A Docker restart policy, or start by handWhether the service returns by itself.

What is shared

What two DGX Sparks share automatically, and what they do not.

With this setup the Sparks are two separate computers that happen to serve the same model. Only the sharing of new requests is automatic, and it happens in the balancer.

ThingShared by itself?What really happens
New requestsYes, by the balancerNGINX picks one Spark for each request. It shares whole requests, not words or parts of one.
GPU workNoAll the GPU work of a request is done on the Spark that took it. One request never uses both GPUs.
CPU workOnly by following the requestEach Spark runs its own vLLM processes, so the CPU work for a request lands where the request does. More below.
Model memoryNoEach Spark holds the whole model in its own memory.
Prompt cache and chat historyNoEach server has its own cache of what it has read. vLLM says the same of data parallel copies: the benefit then depends on where requests are sent.
Downloaded model filesNoEach Spark downloads and stores its own copy, with the commands on this page.
Settings, API key, updatesNoYou set, start, stop and update each Spark yourself.
FailoverPartlyNGINX stops choosing a server that keeps failing. Replies under way are lost. Details.

How is CPU work split between the two DGX Sparks?

It is not balanced on its own account. vLLM's design page describes an API server process, which takes HTTP requests and turns text into tokens, a scheduler process, which queues the work and manages the cache, and one worker process for each GPU. Every Spark here has all of these. So when the balancer sends a request to a Spark, that Spark's processor does its text handling and scheduling.

vLLM's tuning page asks for at least two physical CPU cores for one server, plus one more for each GPU (three on a Spark), and warns that too few cores is a common cause of slow serving. That is a figure for each server, before anything else the Spark is running. NGINX also uses some processor time on the first Spark. Nothing here moves processor work from a busy Spark to an idle one, other than where the next request goes. top on each Spark shows what each processor is doing.

Load balancing

How does a load balancer share requests between two DGX Sparks?

NGINX keeps a list of servers (an upstream group) and picks one for each request. With no method line it uses weighted round robin.

Which NGINX balancing method should you use?

Method lineHow it picks (NGINX upstream reference)What to think about with two Sparks
none (round robin, the default)Takes the servers in turn, by weight. Every weight is 1 unless you set it.Even turns, even if one Spark is stuck on long replies.
least_connThe server with the fewest active connections, allowing for weights.What vLLM's example and this page use. It counts connections, not the length of each prompt or how busy a GPU is.
ip_hashChooses by the caller's address, so one caller stays on one server. For IPv4 it uses the first three parts of the address.Through the SSH tunnel on this page, every caller looks like the same local address, so expect everything to go to one Spark.
hash KEY (with optional consistent)Chooses by a key you name. consistent moves fewer keys when the list of servers changes.Can keep one conversation on one Spark, so its cache is there, if your app sends a value that identifies the conversation. We have not written or tested such a key.
random or random twoA random server by weight. With two, picks two and chooses between them, by least connections unless told otherwise. With only two servers, those two are both of them.No clear gain here over least_conn.
least_timeLowest average response time and fewest active connections.NGINX says it was paid-only before version 1.31.0. Check your image's version.

Our advice: start with least_conn, as vLLM's example does, because model replies vary a lot in length. Then look at both logs with your own requests. Our notes about the tunnel and two servers follow from NGINX's descriptions; we have not measured any method.

How does LiteLLM balance two DGX Sparks?

If you already run LiteLLM, give two entries the same model name. Its routing page names these strategies. We have not tested it with two Sparks.

Strategy nameHow it picks
simple-shuffle (default)Weighted pick, using the request and token limits or weights you give; at random with none. LiteLLM recommends it for production.
least-busyThe entry with the fewest calls under way.
latency-based-routingThe entry with the lowest response time.
usage-based-routing-v2Leaves out entries over their token or request limits, then prefers lower token use.
cost-based-routingThe cheapest healthy entry. It is of little use for two identical Sparks.

For a failed entry, LiteLLM has retries (num_retries) and a cool-down (allowed_fails, and cooldown_time, 5 seconds by default; allowed_fails is not set by default).

What if each Spark runs SGLang?

SGLang has its own router, the SGLang Model Gateway. You give it both servers with --worker-urls and choose a --policy: cache_aware (tries to reuse each server's cache while spreading load), round_robin, random, or power_of_two (compares two and takes the less loaded). SGLang's guide calls cache_aware right for most work, and describes health checks, retries and taking a failing server out. The gateway page we read names no default policy, so set one. We give no router commands and have not run it; the rest of this page is vLLM with NGINX.

Failover

What happens when one DGX Spark stops?

What stopsWhat you should expect from this setup
The second Spark, before a request is sent to itIf NGINX cannot connect, it can pass the request to the first server. After repeated failures it leaves the second out for a while, then tries it again.
The second Spark, while it holds a requestExpect that request to fail. Chat requests use POST, and NGINX does not by default pass a POST to another server once it has been sent. Your app has to send it again.
Either Spark, half way through a replyThe reply is cut off. NGINX cannot move a reply that has started to reach your app.
The first SparkThe one address stops. The second server may be running, but this balancer is gone.
The cableThe balancer can no longer reach the second Spark. The first can go on alone.
Both serversNGINX returns an error such as 502.

Which NGINX settings control failover and time-outs?

SettingWhat it controlsDefaultThis page, and when to change it
max_failsFailed tries, within fail_timeout, before a server is treated as unavailable. 0 turns the counting off.13, as in vLLM's example. Lower reacts to a single failure; higher puts up with more.
fail_timeoutThe window for counting failures, and also how long the server is then left out.10s30s. Longer means fewer tries at a dead server, and a slower return for a repaired one.
proxy_next_upstreamWhich failures pass a request to the next server, and count as failed tries.error timeoutNot set. Other status codes, such as 503, are passed on only if you list them.
its non_idempotent optionAlso passes on POST requests that were already sent.offLeft off. Our caution: turned on, a request may be worked on twice, which matters if your app acts on replies.
proxy_next_upstream_tries, proxy_next_upstream_timeoutLimit how many times, and for how long, a request is passed on.0 (no limit)Not set.
proxy_connect_timeoutHow long to wait to connect to a server. NGINX says it cannot usually exceed 75 seconds.60sNot set. Shorten it if a powered-off Spark makes requests wait too long; test with your own network.
proxy_read_timeoutThe longest silence between two reads from the server, not the length of the whole reply.60s600s. A reply that is not streamed sends nothing until it is ready. Longer also means a stuck server holds a request longer.
proxy_bufferingWhether NGINX gathers the reply before passing it on.onoff, so a streamed reply arrives as it is made.
weightA server's share.1Not set. For two matching Sparks, leave equal.
backup, downbackup serves only when the main servers are unavailable. down takes a server out. backup cannot be used with the hash, IP hash or random methods.neitherdown is one way to take a Spark out before work on it (then reload NGINX).
max_connsThe most active connections to one server.0 (no limit)Not set.
zoneShared memory, so NGINX's worker processes share the group's settings and running state.noneNot set, and not in vLLM's example. We have not tested what changes with it.

The open-source NGINX learns of a failure only from real requests. Regular health checks of its own are part of NGINX Plus, the paid product. Defaults come from the upstream and proxy references.

Changing the file needs a reload or restart of NGINX. Do it when a short interruption is acceptable. After docker restart spark-front, check the address again; replies under way can be cut off.

vLLM settings

Which vLLM settings matter for each copy?

Use the same values on both Sparks. These are the defaults in vLLM's serve reference as read on 27 November 2026, when the newest vLLM release was v0.34.0. The image from NVIDIA's playbook can hold an older vLLM with other options or defaults, so check with vllm serve --help=all inside your image.

SettingWhat it controlsDefaultWhen to change it
--host, --portWhere the API listens, inside the container.No host default is stated; port 8000Left as they are here. Docker's -p line decides which Spark address offers it.
VLLM_API_KEY or --api-keyThe key a caller must send on protected paths.noneSet it, and use the same key on both so either can answer.
--served-model-nameThe model name apps send.the model you namedTo give both copies one plain name. It must match on both.
--revisionWhich version of the model files.the default versionTo pin both Sparks to one commit.
--max-model-lenThe context length, prompt and reply together.read from the model's own settings fileLower it if the model does not fit, to what your work needs.
--gpu-memory-utilizationThe share of GPU memory vLLM's model processes may use, from 0 to 1.Unset. The reference says it then becomes 1.0 with the extensible cache and 0.92 otherwiseThe DGX Spark's CPU and GPU share one memory. Do not copy a value from another model or version.
--max-num-seqsThe most requests worked on in one step.no single figure; check your versionvLLM's tuning page suggests lowering it, or --max-num-batched-tokens, when requests are often pushed out and restarted.
--dtypeThe number format for the calculation.autoOnly as the model's own instructions say.
--tensor-parallel-sizeHow many GPUs share one copy.1Stays 1 here: each Spark runs its own copy.

Should the containers start again after a reboot?

The commands on this page set no restart policy, and Docker's default is no: after a reboot you start them yourself. Adding --restart unless-stopped to a docker run line makes Docker restart that container, except after you stop it yourself. We have not tested whether the cluster link is ready early enough at boot for these containers to start.

Our note: anyone allowed to run Docker on a Spark can read a container's settings, including a key passed this way.

Before you start

What you need first.

Two DGX Sparks on the same current DGX OS, with the cable link set up and tested as in the cluster setup guide. In the commands, my-spark is the first Spark, spark-two the second, and USER your user name. Replace words in capitals with your own values. Nothing on this page has been run by us on hardware.

The model must run well on one Spark first. Get both Sparks able to download it, with enough free disk on each. The vLLM container image must suit the DGX Spark's ARM processor: start from the tag in NVIDIA's vLLM playbook and use the same one on both.

How it fits together

One address in front of two model servers.

Your appLoad balanceron my-sparkvLLM on my-sparkwhole modelvLLM on spark-twowhole model, over the cable
The load balancer picks a server for each request. The cable carries only requests and replies for the second Spark. Our own drawing.

Set up

How to set up a model server on each Spark.

  1. Make one API key.

    Make a long random key, and keep it in your password manager. Enter the same one on both Sparks without it landing in your shell history:

    openssl rand -hex 32
    read -rs VLLM_API_KEY && export VLLM_API_KEY
  2. Start vLLM on both Sparks.

    Starting a server loads the GPU and takes much of the memory. Check on each Spark that nothing important is using them.

    On each Spark, set its own cluster link address, the image tag and the model. Publishing the port on the link address keeps Docker from offering it on your home network address.

    export LINK_IP="THIS-SPARK-LINK-ADDRESS"
    export VLLM_IMAGE="nvcr.io/nvidia/vllm:TAG-FROM-NVIDIA-PLAYBOOK"
    export MODEL="ORG/MODEL"
    
    docker run -d --name vllm-copy --gpus all --ipc=host \
      -p "$LINK_IP:8000:8000" \
      -v ~/.cache/huggingface:/root/.cache/huggingface \
      -e VLLM_API_KEY \
      "$VLLM_IMAGE" vllm serve "$MODEL"
    
    docker logs -f vllm-copy

    A gated model also needs your own Hugging Face token, passed with -e HF_TOKEN.

    Wait until the log says the application has started. The first start downloads the model and can take a long time.

  3. Put NGINX in front, on the first Spark.

    The vLLM documentation shows NGINX sharing requests between servers. This is our two-Spark version of it. Make a folder called nginx_conf and put this in nginx_conf/sparks.conf:

    upstream sparks {
        least_conn;
        server FIRST-SPARK-LINK-ADDRESS:8000 max_fails=3 fail_timeout=30s;
        server SECOND-SPARK-LINK-ADDRESS:8000 max_fails=3 fail_timeout=30s;
    }
    server {
        listen localhost:8080;
        client_max_body_size 32m;
        location / {
            proxy_pass http://sparks;
            proxy_set_header Host $host;
            proxy_buffering off;
            proxy_read_timeout 600s;
        }
    }
    docker run -d --name spark-front --network host \
      -v "$PWD/nginx_conf:/etc/nginx/conf.d:ro" nginx
    docker logs spark-front

    Where we differ from vLLM's example: we listen only on the Spark itself, turn buffering off so streamed replies arrive as they are made, allow longer for slow replies, accept requests up to 32 MB (NGINX stops at 1 MB by default, which long prompts and pictures pass), and use a 30 second fail_timeout. vLLM's example uses 10000s, which leaves a failed server out for nearly three hours. Pin an NGINX version once yours works.

  4. Reach it from your computer.

    Open an SSH tunnel and leave it running. Point your app at http://localhost:8080/v1 and give it the API key.

    ssh -N -L 8080:localhost:8080 USER@my-spark.local

The API key does not guard everything. vLLM's security page says --api-key protects paths such as /v1 but not several others, including some that run or pause the model. Keep the servers reachable only on the cluster link and, through the balancer, by SSH.

Check

How to check both copies are working.

Check, run on my-sparkSuccess
curl --fail http://FIRST-SPARK-LINK-ADDRESS:8000/health, then the same with the second addressBoth return without an error.
curl http://localhost:8080/v1/models -H "Authorization: Bearer $VLLM_API_KEY"A list naming your model.
Send several chat requests at once through port 8080, while running docker logs -f vllm-copy on eachBoth logs show requests.
On spark-two, docker stop vllm-copy, then send a request again; then docker start vllm-copyThe new request is still answered. After loading, the second server takes work again.

The last check stops a model server. Anything it is answering at that moment is cut off.

Use the same model, model version, image and settings on both, or two identical questions may be treated differently.

Other ways

Other ways to get one address.

LiteLLM

If you already run a gateway, LiteLLM balances between two entries that share a model name, each pointing at one Spark.

vLLM data parallel

vLLM can run one deployment across two nodes with its own single entry point. The two then depend on each other, unlike the setup here.

Kubernetes

A Service can share requests between two pods. See the Kubernetes page. For Python services on a Ray cluster, see the Ray page.

vLLM data parallel across two DGX Sparks: how is it different?

vLLM's data parallel deployment also keeps whole copies of the model, but as one deployment that vLLM balances itself. Its page says this works for dense and mixture-of-experts models. It has these shapes:

ShapeHow requests are sharedWhere the API and its CPU work runMain options
Internal balancingBy vLLM's API server, from each copy's running and waiting requests.On the first node. The second runs --headless, with no API server. --api-server-count adds API server processes on the first node; its default is the data parallel size.--data-parallel-size (all copies), --data-parallel-size-local (copies on this node), --data-parallel-start-rank (first copy on the headless node), --data-parallel-address and --data-parallel-rpc-port
HybridAn outside balancer picks a node; each node queues to its own copies.On every node. It cannot be combined with --headless.--data-parallel-hybrid-lb (off by default)
ExternalAn outside balancer treats each copy as its own server.With each copy.vLLM says its external data parallel options are only for mixture-of-experts models. The setup on this page needs none of them: it is two ordinary servers.

For two Sparks with one GPU each, the internal shape reads like this when the page's example is cut down to one copy a node. This is our adaptation and we have not run it. Run it inside containers set up as on the split model page:

# first Spark
vllm serve ORG/MODEL --data-parallel-size 2 --data-parallel-size-local 1 \
  --data-parallel-address "$HEAD_IP" --data-parallel-rpc-port 13345 \
  --host localhost

# second Spark
vllm serve ORG/MODEL --headless --data-parallel-size 2 --data-parallel-size-local 1 \
  --data-parallel-start-rank 1 \
  --data-parallel-address "$HEAD_IP" --data-parallel-rpc-port 13345

--host localhost keeps the server to this Spark. Without it, vLLM listens on every network the Spark is on, with no password. To reach it from your computer, open an SSH tunnel and use http://localhost:8000/v1:

ssh -N -L 8000:localhost:8000 USER@my-spark.local

This opens traffic between the Sparks that vLLM does not secure by default. Keep it on the cluster link only. With one API on the first Spark, if that Spark stops, the address stops. The page we read does not say what happens when the other node fails. --max-num-seqs applies to each copy.

Stop and undo

How to stop it, and remove it.

Stopping ends any replies in progress.

To stop: on the first Spark, then on both:

Stop the balancer first, then both servers.

docker stop spark-front        # first Spark
docker stop vllm-copy          # both Sparks

Remove what you added.

Removing deletes the containers and your NGINX folder. Copy anything you want to keep first.

To undo: remove the stopped containers and the NGINX folder. The downloaded model stays in ~/.cache/huggingface until you delete it yourself.

docker rm spark-front          # first Spark
docker rm vllm-copy            # both Sparks
rm -r nginx_conf               # first Spark

Problems

If one address does not work.

What you seeWhat to try
502 from port 8080Neither server is ready or reachable. Check each /health directly.
401 UnauthorizedThe app's key differs from the one the servers started with.
Docker says it cannot bind the addressLINK_IP is not an address of that Spark, or the link is down.
All requests go to one SparkWith one request at a time that can be normal. Test with several at once, and check the other server's health. If you chose ip_hash, callers through the tunnel share one local address.
A long reply ends with a time-out errorRaise proxy_read_timeout, or have the app ask for a streamed reply.
Requests fail when one Spark is switched offSee what NGINX passes on and what it does not. Your app should send a failed request again.
Nothing answers after a rebootWith no restart policy the containers stay stopped. Start them again on each Spark.

More: cluster problems by symptom.

Next

Keep going.

About Server AI Hub

Server AI Hub is our app for looking after a DGX Spark. You do not need it to follow this playbook. It is coming soon to the App Store and the Microsoft Store.

See what Server AI Hub does

Sources

Check the makers’ own pages.

Read on 26 November 2026; the decision, sharing, balancing, failover and settings sections on 27 November 2026, from the current documentation then (newest vLLM release v0.34.0; NGINX's reference notes the versions where its behaviour changed). These projects change often; if their pages differ from this one, follow them.

General guidance only, in our own words. Back up before you start; you use these steps at your own risk. NVIDIA, DGX, DGX Spark, ConnectX and CUDA are trademarks of NVIDIA Corporation; Kubernetes, K3s, Ray, PyTorch, vLLM, SGLang, NGINX, Docker and other names belong to their owners. 6ixLabs is not affiliated with or endorsed by NVIDIA or any of these projects.