Canary Deployment

What is Canary Deployment?

Canary deployment is a release technique that sends a new software version to a small share of users or servers first, monitors its behavior and gradually expands the rollout only if it performs well.

Updated November 2026 · 2 min read


A canary deployment is a release technique that sends a new version to a small share of users or servers first, monitors how it behaves and expands the rollout only if everything looks healthy. If error rates, latency or business measures get worse, the rollout stops and traffic goes back to the old version. Only the small group sees the problem.

The name comes from the canaries miners once carried underground. The birds were more sensitive to toxic gas than people, so a canary in distress warned miners to get out. In software, the small first group plays the same role.

How canary deployment works

  1. Deploy the new version alongside the current one.
  2. Route a small share of traffic, such as 1% or 5%, to the new version, or deploy it to a few servers.
  3. Compare the canary with the current version on key measures: errors, latency, resource use and business metrics such as conversions.
  4. If the canary is healthy, increase its share in steps, such as 5%, 25%, 50%, 100%.
  5. If it is not, stop and route all traffic back.

Many teams automate this analysis, so the rollout proceeds or rolls back without human intervention.

Choosing the canary group

  • Random traffic: a representative sample of users.
  • Internal users first: employees try the new version before customers.
  • Specific regions or segments: lower-risk markets or customers who opted into early access.
  • Specific servers or clusters.

What metrics to monitor during a canary

  • Error rates and failed requests.
  • Latency, especially at slower percentiles.
  • Resource use, such as memory and CPU.
  • Business measures, such as sign-ups, checkouts or searches.
  • Service level objectives. See SLOs.

Canary deployment example

Consider a hypothetical streaming service releasing a new version of its recommendation service. It sends 2% of traffic to the new version. Error rates are identical, but automated analysis notices that 99th-percentile latency is 40% higher on the canary and that viewers on the canary start slightly fewer shows. The rollout stops automatically. Engineers find an inefficient database query added in the release, fix it and run the canary again. This time, latency matches the old version and the rollout completes over two hours.

Common pitfalls

  • Canary too small or too short to detect problems.
  • Watching only technical metrics, missing business effects.
  • Incompatible changes, such as database changes that break the old version during the rollout.
  • Manual analysis that slows every release.

Canary releases are often combined with feature flags and compared with blue-green deployment. Both are tools of continuous delivery.

Frequently asked questions

What share of traffic should a canary deployment start with?

Canary deployments usually start small, such as 1% or 5% of traffic or a few servers, and increase in steps such as 5%, 25%, 50% and 100% while the canary stays healthy. The group must be large enough and run long enough to detect problems, since a canary that is too small or too short can miss them.

Which metrics decide whether a canary deployment proceeds?

Compare the canary with the current version on error rates and failed requests, latency at slower percentiles, resource use such as memory and CPU, and business measures like sign-ups or checkouts. Service level objectives give clear thresholds. Watching only technical metrics can miss a release that works but quietly lowers conversions.

Why is it called a canary deployment?

The name comes from the canaries miners once carried underground. The birds were more sensitive to toxic gas than people, so a bird in distress warned miners to get out. In a canary deployment, the small first group of users or servers plays the same role, revealing problems before the release reaches everyone.

Book a demo