GPU Autoscaling for LLM Inference: Cold Starts, Warm Pools and Queue-Based Scaling
Autoscaling a web service is mostly a solved problem: when traffic rises, start more copies, and they're ready in seconds. LLM inference is harder. A new replica needs a GPU, a serving engine and tens of gigabytes of weights loaded into memory before it can answer anything, and the signal that tells you to scale isn't the one most autoscalers watch.
This guide explains what scaling options you have on Nebula Block, what a cold start is made of, how warm pools and queue-based scaling work, and how to measure all of it yourself. One note on scope: Nebula Block's public documentation describes serverless inference, GPU instances managed through the console and the Platform API, and Spot instances.
It doesn't describe a managed autoscaler for GPU instances, so for dedicated GPUs this post shows how to build the scaling logic yourself on the Platform API. If your account has a scaling feature that the documentation doesn't cover, the measurements below apply to it just the same. Serverless inference scales for you. The post doesn't publish cold-start or scale-up times, because they depend on the model, the image, the region and the day. It shows you how to measure your own instead.
What makes LLM scaling different
- Replicas are heavy. A 70B model in FP8 has about 70 GB of weights (see our VRAM guide). Every new replica has to get those weights onto a GPU.
- GPU utilization is a poor trigger. A GPU can look busy long before it's out of capacity, and requests can queue while utilization sits below 100%. Queue depth and KV cache pressure tell you more.
- Capacity isn't guaranteed. On Nebula Block, the docs warn that capacity moves constantly: a configuration that's available today can be gone tomorrow.
- You pay while you wait. An instance bills from the time it exists, including while it's still loading a model.
Your three options on Nebula Block
1. Serverless inference: scaling is the platform's job
With serverless inference you call a model through an OpenAI-compatible endpoint and pay per token, so there are no replicas to manage. Your limits are the ones set by your account tier: requests per minute, tokens per minute and daily caps, listed on the Tiers and Rate Limits page.
The docs don't describe how serverless models behave when idle, so don't assume. If first-request latency matters to you, measure it: send a request after a quiet period and compare time to first token with a busy period.
This is the right starting point for variable or unpredictable traffic, as long as the model you need is in the catalog. Comparing the per-token price of a model with the hourly cost of a GPU you keep busy shows when a dedicated GPU starts to win.
2. Dedicated GPU instances: you build the scaling loop
If you need your own model or a serving stack you control, you rent GPU instances and scale them through the Platform API: list configurations, create an instance, poll its status, and delete it when you're done. A few details from the docs matter for any scaling loop:
- A successful create call means "accepted", not "ready". According to the Create Instance page, the instance passes through a provisioning status (
Created,DeployingorProvisioning) before reachingRunning, so poll Get Instance rather than assuming. - Errors can come back as HTTP 200. A rejected deployment returns
"status": "failed"with a message, such as out of stock or insufficient balance. Your code has to readstatus, not just the HTTP code. - Capacity moves constantly. Check
is_availablein List Products before you deploy, and expect that a configuration can disappear. Have a fallback configuration or region. - Limits apply. Every account has an hourly spending limit, and GPU instances need Tier 3.
- Billing continues while the instance exists. Stopping an instance doesn't stop the charge. Only deleting it does.
3. Spot instances: cheap, but not for serving
Spot instances use spare capacity at a lower rate and can be preempted at any time. The Spot docs say to use on-demand instances for workloads that can't tolerate interruption, such as production serving. Spot fits workers that drain a queue of offline jobs and can resume, not the replicas answering live users.
Anatomy of a cold start
When you scale up a dedicated GPU, the delay before the first useful token is the sum of several stages:
- Instance provisioning: from the create call to status
Running. - Access and environment: SSH ready, drivers and CUDA present, serving software installed.
- Weights transfer: getting the model files to the instance.
- Model load: reading the weights into GPU memory.
- Warm-up: the first requests, which can be slower while the engine prepares.
Stage 3 is the one you can estimate in advance. Weights size divided by transfer speed gives a lower bound. For 70 GB, a hypothetical 1 GB/s link takes about 70 seconds, and a 0.1 GB/s link takes almost 12 minutes. Those speeds are made up to show the arithmetic, so measure yours.
Two things shorten it. Keep your weights in durable storage you can reach quickly, such as Nebula Block's S3-compatible object storage, and measure the real transfer speed from your instance, because it depends on where the storage and the instance are. And remember that storage on an instance can be ephemeral and disappear when you delete it, so don't treat the instance disk as your only copy.
Warm pools: pay to skip the wait
A warm pool is one or more replicas kept running ahead of demand, so scale-up doesn't have to wait for a cold start. The trade-off is plain: you pay for them while they sit idle.
Using Nebula Block's sample price of $2.632 per hour for a single H100 PCIe VM in Canada (from the API docs, a sample rather than a quote), one warm GPU costs about $63 per day, or about $1,921 over a 730-hour month.
There's an important Nebula Block detail here. Because a stopped instance is still billed, you can't keep a pool cheaply by stopping spare instances. A warm replica costs the same stopped or running, so a pool means running replicas sized to your baseline, with spikes handled another way.
A common pattern: size dedicated capacity for the steady baseline, keep it busy, and send overflow to serverless inference so you never pay for peak capacity around the clock. That mix is also a good answer when your cold start is long.
Queue-based scaling: what to watch
For LLM serving, scale on the queue, not on GPU utilization. vLLM, for example, exposes Prometheus metrics at /metrics on its OpenAI-compatible server, including the number of requests running, the number waiting, and KV cache usage. Metric names change between versions, so check the documentation for yours.
Signals that work well:
- Requests waiting. A rising queue while running requests stay flat usually means the replica can't absorb the traffic.
- KV cache usage and preemptions. When the cache fills, the engine can preempt requests, which lowers throughput.
- Queue time and time to first token. These are what users feel.
A simple policy, in pseudocode rather than a tested script (the numbers are illustrative):
every 15 seconds:
if requests_waiting > threshold for 2 minutes:
create_instance() # then poll Get Instance until Running
if requests_waiting == 0 and capacity_idle for 10+ minutes:
delete_one_instance() # delete, don't stop: stopping still billsChoose the delays from your own measurements. Scale up quickly enough that users don't wait, and scale down slowly enough that you don't delete a replica just before the next burst, because a replica you delete will need a full cold start to come back.
How to measure your own cold start
Since the numbers depend on your setup, record them yourself and date them. For each test, note the GPU, region, image, model and weights source, then time:
- create call to status
Running; Runningto SSH-ready;- weights available on the instance;
- serving process started to the first successful token;
- the first five requests, to see warm-up.
Repeat it at different times of day. Report the median and the slowest run, because scale-up decisions have to survive the bad cases. Tests also cost money, and an instance bills from the moment it's created, so delete test instances when you finish.
Which option fits
- Unpredictable or low traffic, model in the catalog: serverless.
- Steady traffic that keeps GPUs busy, or your own model: dedicated on-demand instances, sized for the baseline.
- Spiky traffic on top of a baseline: dedicated baseline plus serverless overflow.
- Offline or resumable jobs: Spot workers pulling from a queue.
The bottom line
On Nebula Block, serverless scales for you, and dedicated GPUs scale however you build them. The hard parts are the cold start (mostly moving weights), the signal (queue depth and cache pressure, not utilization) and the bill (a warm replica costs the same stopped or running). Measure your own cold start, write down the date, and design around the slowest case.
Learn more at
- Email: contact@nebulablock.com
- Website: nebulablock.com
- Docs: docs.nebulablock.com
- Book a call: nebulablock.com/contact