Serving
GPU autoscaling & cold starts
GPUs take minutes to add and models take time to load — scale ahead of demand.
What it is and why it exists
A new GPU node can take minutes to provision, and loading tens of GB of weights takes more. Autoscaling on CPU utilisation is meaningless here; scale on queue depth, KV-cache usage or in-flight requests, keep warm capacity, and use scale-to-zero only where cold starts are acceptable.
Quick prototype
One always-on GPU.
In production, at scale
Metrics-based autoscaling with headroom, pre-pulled images and cached weights, minimum replicas, and burst to a hosted API when self-hosted capacity runs out.
Vendors and tools
| KServe / Ray Serve / Modal / Baseten | Model serving with autoscaling |
|---|---|
| KEDA | Event-driven autoscaling on Kubernetes |
On AWS: SageMaker endpoint autoscaling; EKS with Karpenter for GPU nodes.
How it fails
- Traffic spike + 10-minute cold start = outage
What the interviewer asks next
What metric would you autoscale an LLM server on?
Queue depth / waiting requests or KV-cache utilisation, with targets set from load tests — not CPU.