Local-Ai

Gatewaying Two DGX Spark vLLM Nodes with vLLM Semantic Router

Gatewaying Two DGX Spark vLLM Nodes with vLLM Semantic Router

9 min read

You now have two NVIDIA DGX Spark units running vLLM, and you have measured them: one node alone, two nodes behind Nginx load balancing, and two nodes as a Ray cluster. The next question is what sits in front of them: how do you decide which node gets which request, how do you enforce guardrails, and how do you cache repeated queries without hitting the model at all?

This post covers vLLM Semantic Router as the gateway layer in front of your two DGX Spark nodes. It selects or combines backends per request based on policy, runs guardrails (jailbreak, PII, hallucination detection), and caches semantically similar queries. We walk through installing it, wiring it to spark-1 and spark-2, defining routes, and adding its metrics to the same Prometheus and Grafana stack you already built.

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

Shared KV Cache Across Two DGX Spark Units: Valkey Cluster, Local SSD, and P2P Options

10 min read

Two NVIDIA DGX Spark units running independent vLLM instances have a blind spot: vLLM’s prefix cache is per-node. A request landing on spark-2 cannot reuse the KV cache blocks that spark-1 already computed for the same prompt prefix. Every node cold-starts its own KV cache, so repeated prompts and multi-turn conversations pay the prefill penalty on every hop.

This post documents how to share KV cache across both DGX Spark nodes using LMCache, a standalone KV cache layer for LLM inference. It compares three native storage backends — a Valkey cluster on both nodes, local SSD per node, and direct P2P transfer over the ConnectX-7 NIC — with no custom Python or dispatcher code required.

Two DGX Spark 128 GB Units for Local AI: Single Node vs Nginx Load-Balanced vLLM in Grafana

Two DGX Spark 128 GB Units for Local AI: Single Node vs Nginx Load-Balanced vLLM in Grafana

12 min read

We bought two NVIDIA DGX Spark units with 128 GB of unified memory each to run large language models locally. Before trusting them with real workloads, we needed to know how they behave under load: one node by itself, two nodes behind a load balancer, and anywhere from one to sixteen people sending requests at the same time.

This post is the step-by-step record of how we measured it and how we visualized the results in Grafana. The monitoring stack — Prometheus, Grafana, and the Nginx load balancer — runs on a separate server, while both DGX Spark nodes run independent vLLM instances. It covers preparing the nodes, running vLLM on a single node and across two load-balanced instances, benchmarking with 1, 4, 8, and 16 concurrent users, scraping vLLM metrics into Prometheus, and building the Grafana dashboards that made the comparison readable.

Two DGX Spark 128 GB Units for Local AI: Single Node vs Ray Clustered vLLM in Grafana

Two DGX Spark 128 GB Units for Local AI: Single Node vs Ray Clustered vLLM in Grafana

13 min read

We bought two NVIDIA DGX Spark units with 128 GB of unified memory each to run large language models locally. Before trusting them with real workloads, we needed to know how they behave under load: one node by itself, two nodes as a Ray cluster with tensor parallelism, and anywhere from one to sixteen people sending requests at the same time.

This post is the step-by-step record of how we measured it and how we visualized the results in Grafana. The monitoring stack — Prometheus and Grafana — runs on a separate server, while both DGX Spark nodes run vLLM under a Ray distributed executor. It covers preparing the nodes, running vLLM on a single node and across the Ray cluster, benchmarking with 1, 4, 8, and 16 concurrent users, scraping vLLM metrics into Prometheus, and building the Grafana dashboards that made the comparison readable.