Menu

vLLM in production on Kubernetes: the startup probe, the /dev/shm trap, and autoscaling on queue depth
📰

vLLM in production on Kubernetes: the startup probe, the /dev/shm trap, and autoscaling on queue depth

DEV Community: kubernetes·Altostratus Amihai·4 days ago
#1O4gGgyS
#devtokubernetes#devto#dev#vllm#model
Long article (562 words) — no AI summary yet.
Reading 0:00
15s threshold

Getting an LLM running on a GPU is easy. vllm serve and you have an OpenAI-compatible endpoint in five minutes. Running it in production is where the days disappear, and they disappear in three specific places.

1. The startup probe, or why your pods keep dying on rollout

A 70B model takes minutes to load into GPU memory. The default Kubernetes liveness probe kills the container after 30 seconds, the load restarts, and the pod crash-loops forever. The fix is a startup probe with a window sized for your actual model load:

startupProbe : httpGet : path : /health port : 8000 failureThreshold : 40 periodSeconds : 15 # 10 minutes of patience for big models readinessProbe : httpGet : path : /health port : 8000 periodSeconds : 10

Enter fullscreen mode

Exit fullscreen mode

Size failureThreshold * periodSeconds from a measured cold load, then add headroom for model download on a fresh node. Only after startup succeeds do the liveness and readiness probes take over.

2.…

Continue reading — create a free account

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