Skip to main content
AI on Kubernetes · GPU/NPULesson 11 of 20

Until a Model First Starts (Cold Start)

A typical web Pod starts in seconds. An LLM replica must read model weights that can exceed tens of GB, load them into accelerator memory, and prepare the engine, which can take minutes. The time from creating a replica until it can take its first request is the cold start. The general Pod startup path is in How a Pod Starts; this lesson focuses on the parts that get long because it is an LLM.

Current phasewaiting to schedule
Why this phase is slow—
Can take requestsNo
GPU nodeOperatordeploy · add replicaModel storesource weightsSchedulerpicks a nodeLocal disklocal model cacheEngine PodvLLMAccel. memoryweights + KV cacheGateway/pickersends requestsreplica +1
RequestResponse / reportAppears in a later step

What you will learn

  • LLM replicas start slowly because of their weights
  • Most of the time goes to fetching and reading weights
  • The engine also needs preparation before the first request
  • Cold start sets how fast scaling can react
  • Pre-caching, fast storage, and reuse shorten it

What to check per phase​

PhaseWhere to lookHow to shorten
Image pullPod events (Pulling, Pulled)Pre-pull images, nearby registry
Weight fetchEngine logs, network usageLocal model cache
Load to acceleratorLoad time in engine logsNVMe, GPUDirect Storage
Engine warm-upWarm-up time in engine logsReuse compile cache, compile ahead

Try it yourself​

kubectl get pod <pod> -w # Pending → ContainerCreating → Running → Ready
kubectl get events -n <namespace> --field-selector involvedObject.name=<pod> # Pulling/Pulled image time (step 2)
kubectl logs -f <pod> # Weight loading and warm-up time (steps 3-5)
kubectl get pod <pod> -o jsonpath='{.spec.containers[*].startupProbe}' # Startup probe covers the load? (step 6)
kubectl get pod <pod> -o jsonpath='{.status.containerStatuses[*].restartCount}' # Restarts mean liveness killed the load
curl -s -o /dev/null -w '%{http_code}\n' http://<engine>:8000/health # e.g. vLLM: 200 once the engine is ready

Check yourself

  1. Every new LLM replica takes minutes to start, and most of that time is spent before the engine even loads anything. What is the first fix to try?
  2. An engine Pod keeps restarting while it loads the model, and the load starts over each time. What is most likely?
  3. Traffic spikes and autoscaling adds replicas, yet queues still build up for minutes. Why?

Further reading: Liveness, Readiness, and Startup Probes · vLLM docs · KServe Model Cache