Menu

1 / 5

Autoscaling LLM inference on Kubernetes with vLLM: stop scaling on GPU utilisation

DEV Community: kubernetes·Azrty·1 day ago
#4Y9bhddX
#devtokubernetes#devto#dev#vllm#requests
Long article (2840 words) — no AI summary yet.
Reading 0:00
15s threshold

If you self-host vLLM on Kubernetes and your Horizontal Pod Autoscaler scales on DCGM_FI_DEV_GPU_UTIL, you are scaling on a metric that sits near 100% whether you serve a handful of requests a second or a few hundred. You pay for idle GPUs overnight and still shed load at the morning peak. Here is how to autoscale LLM inference on Kubernetes when the server is vLLM: measure the three signals that actually track demand (queue depth, p95 latency, KV-cache utilisation), wire them through KEDA and HPA over Karpenter, and set thresholds from a real load test. The result is replicas that appear before users notice and disappear when the traffic does.

If you run LLM inference on your own GPUs, whether in a UAE colocation facility, on a private cloud in the GCC, or on regional public cloud instances, your cost base is whole GPU-hours. Autoscaling is the only lever that converts a static GPU fleet into a cost that tracks demand.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.