Operationrange Get a free plan

How much do blue/green and canary deployments of an LLM cost?

Every rollout strategy rents extra GPUs for a while. Blue/green rents a second copy of the fleet, a canary rents one extra replica, and a shadow test rents a full mirror. Rented GPUs are billed by the second, so that is a small share of the bill. Take a fleet of four gpt-oss-120b replicas on 1× A100 80GB each. At today's prices one release costs about $5.78 with blue/green, $21.36 with a 24-hour canary and $84.96 with a 24-hour shadow test. Below you'll find what each strategy costs for four model sizes, why LLM rollouts differ from web-app rollouts, and how to set up each strategy.

Blue/green · per release
$5.781.0% of the monthly bill with weekly releases
Canary, 24 h
$21.363.8% of the monthly bill
Shadow, 24 h
$84.9615% of the monthly bill
LoRA adapter canary
$0new adapter on the running model

Tiles: gpt-oss-120b, 4 replicas on 1× A100 80GB, $2,460 a month at today's typical price.

Cost per release

What each deployment strategy costs per release

The extra GPU time one release rents on top of a fleet of 4 replicas, at today's prices. Under each figure is its share of the fleet's monthly bill if you release once a week.

Strategy · extra capacitygpt-oss-20b
4× RTX 3090
$633/month
ready in ≈9 min
gpt-oss-120b
4× A100 80GB
$2,460/month
ready in ≈13 min
Llama 3.3 70B
4× RTX PRO 6000
$4,674/month
ready in ≈13 min
DeepSeek-V4.1-Flash
4 × 8× RTX PRO 6000
$37,392/month
ready in ≈46 min
Recreate
nothing: stop the old version, start the new one
$0
≈9 min down
$0
≈13 min down
$0
≈13 min down
$0
≈46 min down
Rolling update
+1 replica, replacing one old replica at a time
$0.27
0.2% of the month
$1.29
0.2% of the month
$2.50
0.2% of the month
$48.04
0.6% of the month
Blue/green
+4 replicas (a full copy) until the rollback window ends
$1.43
1.0% of the month
$5.78
1.0% of the month
$11.04
1.0% of the month
$116
1.4% of the month
Canary, 24 h
+1 replica with 5–10% of traffic for 24 h, then a rolling update
$5.44
3.7% of the month
$21.36
3.8% of the month
$40.65
3.8% of the month
$353
4.1% of the month
Shadow, 24 h
+4 replicas get a copy of all traffic for 24 h, then a switch
$21.80
15% of the month
$84.96
15% of the month
$162
15% of the month
$1,320
15% of the month
LoRA adapter canary
nothing: the new adapter loads next to the old one
$0
same base model only
$0
same base model only
$0
same base model only
$0
same base model only

A replica is the cheapest setup that fits the model with at least 32K tokens of context, at the typical marketplace price on 5 Dec 2026. “Ready in” is the time from renting a host to serving traffic: start, image pull, weight download at about 2 Gbit/s, loading and engine warm-up. Blue/green keeps the old fleet for a 1-hour rollback window after 30 minutes of tests. Canary and shadow run for 24 hours. See the method.

  • Blue/green costs about 1% of the monthly bill. The second fleet lives only for warm-up, tests and the rollback window, about 2 hours. Blue/green has a reputation for doubling the cost. That is true on servers you own or reserve, where the second fleet has to exist all the time. On rented GPUs you pay for the hours it is up. Each extra hour of keeping the old fleet costs $3.37 for gpt-oss-120b and $51.22 for DeepSeek-V4.1-Flash.
  • A canary costs more than blue/green in a small fleet. A canary rents only one extra replica, but it runs for a day so that enough real traffic reaches it. With 4 replicas, a canary shorter than about 6 hours costs less than blue/green. A 24-hour canary becomes the cheaper option from about 18 replicas. If the fleet has spare capacity, the canary can replace an old replica instead of adding one, and then you pay only for the final rolling update.
  • Shadow testing is the most expensive option. Shadow testing means the new version answers a copy of every request while users still get answers from the old one. A full mirror for a day costs about 15% of the monthly bill with weekly releases. Mirroring 10% of traffic cuts that about tenfold. Replaying a day of logged prompts on one replica in batch mode is cheaper still.
  • Rolling updates are cheap but slow to undo. One extra replica replaces the old ones one by one, for 0.2% of the bill. But both versions serve users during the rollout, and a rollback is another rolling update of 4 × 13 minutes.
  • Recreating is free but causes downtime. Stopping the old version and starting the new one costs nothing extra. The API is down while the new replicas load: 9 minutes for gpt-oss-20b and 46 minutes for DeepSeek-V4.1-Flash. That is fine for internal tools and batch jobs in a quiet hour.
LLM specifics

Why LLM rollouts are slower than web-app rollouts

  • Loading takes minutes, not seconds. A new replica downloads 14–510 GB of weights, loads them into GPU memory and warms up the engine: vLLM profiles memory, compiles and captures CUDA graphs. A ready replica takes about 9 minutes for gpt-oss-20b, 13 minutes for Llama 3.3 70B and 46 minutes for DeepSeek-V4.1-Flash, mostly downloading. Keeping weights on a persistent volume or in the image cuts this to a few minutes.
  • The GPUs must be available when you release. Blue/green needs a second full fleet of the same GPUs at the moment of release. Today the marketplace lists 1,010 RTX 4090 offers, 141 A100 and 47 H100. Rent the green fleet before the release window, or plan blue/green on GPUs with deep supply.
  • Streaming responses need draining. A long answer can stream for minutes. Switch traffic at the load balancer, let open requests finish on the old version, and only then stop it. Set the grace period to at least the longest generation you allow.
  • New replicas start with cold caches. The prefix cache is empty, so the first minutes after a switch have a slower time to first token on long shared prompts. Warm the green fleet with a few hundred real prompts before you switch.
  • Quality regressions do not show up as errors. A worse model still returns HTTP 200. Besides errors and latency, a canary should track refusals, answer length, user ratings and an eval score on sampled conversations. That needs hours of traffic, which is why LLM canaries run longer than web-app canaries.
  • Two versions rarely share one GPU. Two copies of a 70B model don't fit on one GPU, so each version needs its own GPUs. The exception is a fine-tune: two LoRA adapters share one base model, and the new adapter can serve a canary with no extra GPUs.
Method

How we calculate the cost of a release

cost of a release = extra replica-hours × price of one replica per hour

ready (L)   = 5 min start and image pull + weights ÷ 0.25 GB/s
              + weights ÷ 2 GB/s (disk to GPU) + 3 min engine warm-up
rolling     = N × (L + 10 min checks)
blue/green  = N × (L + 30 min tests + 1 h rollback window)
canary      = (L + 24 h) + (N − 1) × (L + 10 min)
shadow      = N × (L + 24 h + 1 h rollback window)
  • Fleet. N = 4 replicas. One replica is the cheapest setup that fits the model with at least 32K tokens of context, as in our hosting cost guide. Today that is 1× RTX 3090 for gpt-oss-20b, 1× A100 80GB for gpt-oss-120b, 1× RTX PRO 6000 for Llama 3.3 70B FP8 and 8× RTX PRO 6000 for DeepSeek-V4.1-Flash.
  • Billing. The share of the bill assumes one release a week, 4.35 a month, against the fleet running 24/7. Vast.ai bills GPUs per second while an instance runs, so a 2-hour overlap costs 2 hours. On servers you own or reserve, blue/green instead needs a second fleet's worth of spare capacity all the time.
  • Download speed. Marketplace hosts download at anywhere from 0.5 to 10 Gbit/s. We assume 2 Gbit/s. Weights already on the host skip the download, which is most of the time for 70B and larger models.
  • What is not included. Engineering time, evals, load balancer and storage costs, and failed releases that roll back. The numbers are calculated from today's prices, not measured.
Recipe

Blue/green, canary and shadow for vLLM

You don't need Kubernetes for blue/green or a canary. Run the old and new fleets as two nginx upstream groups. split_clients sends each API key to one of them, so every client sees one version consistently:

upstream llm_blue  { server 10.0.0.11:8000; server 10.0.0.12:8000; keepalive 32; }
upstream llm_green { server 10.0.0.21:8000; server 10.0.0.22:8000; keepalive 32; }

split_clients "${http_authorization}" $llm_pool {
    5%   llm_green;     # canary share; raise step by step
    *    llm_blue;
}

server {
    listen 443 ssl;                   # plus your ssl_certificate lines
    location /v1/ {
        proxy_pass http://$llm_pool;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_buffering off;          # stream tokens as they are generated
        proxy_read_timeout 600s;
    }
}

For a canary, raise the share step by step: 5%, 25%, 50%. For a blue/green switch, point * at llm_green. To roll back, point it back. nginx -s reload applies the change without cutting streams in progress: old worker processes finish their open requests first. Keep the blue fleet until the rollback window ends, then stop it.

For shadow testing on Kubernetes, Istio mirrors a share of requests to the new version and discards its responses. The blue and green subsets come from a DestinationRule:

apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
  name: llm
spec:
  hosts: [llm]
  http:
  - route:
    - destination: {host: llm, subset: blue}
    mirror: {host: llm, subset: green}
    mirrorPercentage: {value: 10.0}

For a fine-tune, release a new LoRA adapter without new GPUs. vLLM loads it next to the old one while the server runs:

VLLM_ALLOW_RUNTIME_LORA_UPDATING=True vllm serve meta-llama/Llama-3.1-8B-Instruct \
  --enable-lora --max-loras 2 --max-lora-rank 16 \
  --lora-modules support-bot-v1=/adapters/v1

curl -X POST localhost:8000/v1/load_lora_adapter -H "Content-Type: application/json" \
  -d '{"lora_name": "support-bot-v2", "lora_path": "/adapters/v2"}'

Then send 5% of users to "model": "support-bot-v2" in your app, compare their metrics, and unload v1 with /v1/unload_lora_adapter once v2 wins. These endpoints change what the server runs, so block them at the proxy for everyone but your deploy job. See what a LoRA fine-tuning run costs.

Verdict

Which deployment strategy to use

  • Internal tools and batch jobs: recreate in a quiet hour. It costs nothing. Downtime equals the load time, 9 minutes to 13 minutes for models up to 70B.
  • Most production LLM APIs: blue/green. It costs about 1% of the bill with weekly releases, has no downtime, and rolls back in seconds. It is also the simplest to run with plain nginx. Rent the green fleet ahead of time if the GPU is scarce.
  • Big fleets and risky model changes: canary. From about 18 replicas, a canary costs less than blue/green, and it limits a bad model to 5–10% of users. Judge it on quality metrics, not only on errors.
  • A new model family or a big prompt change: replay first. Run a day of logged prompts through the new version offline, then use a sampled shadow or a canary. A full shadow for a day adds about 15% to the monthly bill with weekly releases.
  • A new fine-tune of the same base model: an adapter canary. Load the new LoRA adapter next to the old one and split traffic by model name. It needs no extra GPUs.

Want releases without downtime?

We deploy your model with vLLM behind a load balancer and set up blue/green or canary releases. That includes quality checks, monitoring and automatic shutdown of the old fleet. You pay the GPU provider directly, with no markup; we charge only for engineering.

Get a free deployment plan

What self-hosting an LLM costs per month →
Cost of a LoRA fine-tuning run →
VRAM calculator: which GPU your model needs →

FAQ

Deployment strategy cost questions

What does a blue/green deployment of an ML model cost?

On rented GPUs, it costs a second fleet for the length of the switch: warm-up, tests and the rollback window, about 2 hours. For four gpt-oss-120b replicas on 1× A100 80GB each, that is $5.78 per release at today's prices. With weekly releases, that is about 1% of the monthly bill. Each extra hour you keep the old fleet costs $3.37. On servers you own or reserve, blue/green needs double capacity all the time, which is where its reputation for doubling the cost comes from.

What does a canary deployment of an ML model cost?

One extra replica for as long as the canary runs, plus a rolling update to promote it. A 24-hour canary in a fleet of 4 replicas costs $5.44 for gpt-oss-20b on 1× RTX 3090 and $40.65 for Llama 3.3 70B on 1× RTX PRO 6000 per release. If the fleet has spare capacity, the canary can replace an old replica, and the extra cost drops to the rolling update alone.

Which ML model deployment strategy is the cheapest?

Recreating costs nothing extra but takes the API down while the new version loads. A rolling update is next, then blue/green and the canary. A full shadow is the most expensive, at about 15% of the monthly bill with weekly 24-hour shadows. For a new LoRA fine-tune, an adapter canary on the running model needs no extra GPUs.

Blue/green or canary for an LLM?

For fleets of up to about 18 replicas, blue/green costs less, is simpler and rolls back in seconds. A canary limits a bad release to a small share of users and shows how the new model behaves on real traffic. That matters most when you change the model itself, not just the serving code. Many teams use a canary for model changes and blue/green for engine upgrades.

How long does it take to deploy a new LLM version?

From renting a host to serving traffic: about 9 minutes for gpt-oss-20b, 13 minutes for gpt-oss-120b and 46 minutes for DeepSeek-V4.1-Flash, at a download speed of 2 Gbit/s. Most of it is the weight download. With weights cached on the host or a persistent volume, a replica is ready in about 5–15 minutes.

What does a shadow deployment cost?

A full mirror needs a second fleet for the whole shadow period. For gpt-oss-120b on 4× 1× A100 80GB, a 24-hour shadow costs $84.96 per release. Mirror only 10% of requests and you need about a tenth of the fleet. Replaying logged prompts offline costs less again: in batch mode the GPU stays fully loaded, so a day of traffic takes far fewer GPU-hours.

Can I A/B test two LLMs without extra GPUs?

Yes, if each half of the fleet can carry half the peak traffic. Run the old version on some replicas and the new version on the others, and split traffic by user or API key. You pay extra only while the new replicas load. Two fine-tunes of the same base model can share every GPU as two LoRA adapters.

How do I roll back an LLM deployment?

With blue/green, point the load balancer back at the old fleet while it is still running; that takes seconds. With a canary, set its share to 0%. A rolling update is rolled back with another rolling update, which takes about 4 × 13 minutes for gpt-oss-120b. Keep the old weights and image on hand until the new version has run for a day.