Ai-Gateway

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.

Monitoring a Self-Hosted LLM Stack: vLLM, Phoenix, and Grafana Measurements

Monitoring a Self-Hosted LLM Stack: vLLM, Phoenix, and Grafana Measurements

9 min read

Running a self-hosted LLM stack produces signals on several axes at once — serving health, per-tenant token consumption, response quality, and full request traces. Classic web monitoring does not capture most of them. Tokens, batching, KV cache pressure, queue dynamics, inter-token latency, and trace spans all need their own measurement.

This post is a practical guide to monitoring a self-hosted LLM inference stack. It covers what to measure at each layer (vLLM serving, AI Gateway access, Phoenix tracing and evaluation), which PromQL queries turn raw metrics into dashboards, how KEDA autoscaling consumes the signals, and which SLOs and alerts belong on the platform. The examples assume two NVIDIA DGX Spark units running vLLM, but the metrics and queries apply to any vLLM-based stack.