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
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
| Phase | Where to look | How to shorten |
|---|---|---|
| Image pull | Pod events (Pulling, Pulled) | Pre-pull images, nearby registry |
| Weight fetch | Engine logs, network usage | Local model cache |
| Load to accelerator | Load time in engine logs | NVMe, GPUDirect Storage |
| Engine warm-up | Warm-up time in engine logs | Reuse 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
Further reading: Liveness, Readiness, and Startup Probes · vLLM docs · KServe Model Cache