Cloud & infrastructurecanary deploymentcanaryprogressive deliverycanary analysis

Canary release

Definition

A canary release routes a small, controlled share of requests (by weight, header or user cohort) to a new version, compares its error rate and latency against the stable version, and promotes it in stages or rolls it back.

In practice

The blast radius equals the canary's share: a broken build at 5% hurts 5% of requests for a few minutes instead of everyone. Traffic shares come from weighted load balancing, an ingress or Gateway API route, or a service mesh, and progressive delivery controllers such as Argo Rollouts or Flagger automate the shift, wait and analyse loop.

A canary is only as good as its metrics. Too little traffic or too short a window cannot reveal a difference, rare code paths may never be exercised, and a canary nobody watches is just a slow rolling update. Database and API changes still need to be backwards-compatible because both versions run at once.

Example

The new payments build gets 5% of traffic for 10 minutes; its error rate is 2.1% against 0.2% for stable, so the controller aborts and routes 100% back to the old version.