Canary deployment
A progressive release that deploys changes to part of a service for a limited period and evaluates the results.
Structure and behavior
Follow the arrows step by step.
Validate the new version with a small share of traffic and expand in stages.
Expected benefits
Improves application reliability and reduces deployment risk.
Trade-offs
Rolling back during peak traffic can cause temporary service degradation while the stable ReplicaSet scales up.
Avoid or proceed carefully for trivial fixes, inadequate observability, or complex or unsafe rollback paths.
Operations and adoption guide
Synthesis, distinct from items backed by source excerpts. Validate before applying in production.
When to use
Use a small portion of real traffic to validate high-impact changes to critical user flows, payments or monetization, as well as stateful services, external integrations, and schema or protocol changes.
Scenario
An e-commerce platform with 10 million monthly active users replaces its order and payment API. Send 1% of traffic to canary pods and watch errors, latency, and payment failures. If SLOs hold, progress to 5% → 25% → 100%. If anomalies appear, immediately reduce the canary share to zero and restore the stable version, keeping enough stable capacity throughout rollback.
Placement principles
- Run stable and canary workloads in parallel and identify them with track/version labels
- Use load-balancer, ingress, or service-mesh weights to send a small share to the canary
- Maintain enough stable ReplicaSet or pod capacity throughout the canary so rollback can reroute traffic immediately
- Keep schemas, caches, and configuration compatible with the older version for rollback
- Run the same observability agents and verification tools for both versions.
On premises
On premises, control the canary share using load-balancer or ingress weights and separate server pools. Keep stable capacity available, then test and expand the canary share. Without managed cloud routing, automate monitoring, verification, and rollback procedures in advance.
Cloud
Use managed Kubernetes, load balancers, a traffic manager, or a service mesh to raise the traffic weight in steps such as 1% → 5% → 25% → 100%. Use autoscaling and centralized observability to assess canary health. On failure, lower the weight, reduce canary capacity, or route to the previous version.
Kubernetes
Use separate stable and canary Deployments with track/version labels and control traffic with Service selectors, Ingress, or mesh weights. Monitor errors and latency with readiness/liveness probes, HPA, Prometheus, logs, and traces as appropriate. Keep the stable ReplicaSet at full size while promoting or scaling the canary to zero.
Incident response
Typical incidents are surges in canary errors or latency, payment failures, health alerts, incompatible schemas or caches, and insufficient stable capacity during rollback. After an alert or failed verification, halt the rollout and reduce canary weight to zero or scale down its ReplicaSet to restore traffic to stable. Investigate the cause and blast radius, then decide whether to fix forward or roll back. Verify recovery and readiness to redeploy, then conduct a postmortem.
Evidence by criterion (14 total)
Evidence availability at the time of research. Assess source accuracy and currency separately.
Definition and overviewEvidence available
A progressive release that deploys changes to part of a service for a limited period and evaluates the results.
We define canarying as a partial and time-limited deployment of a change in a service and its evaluation.Problem addressedEvidence available
Test the new version with real production traffic before releasing it everywhere.
Test the new version with real production trafficKey components and resourcesEvidence available
Run stable and canary versions side by side, distinguish them with track labels or equivalent, and distribute traffic.
The stable release uses `track: stable`, and the canary release uses `track: canary`.Data and asset placementEvidence available
Retain stable ReplicaSet capacity throughout the canary and route a separate share to the new version.
keep the stable ReplicaSet at full size for the whole canaryTypical use casesEvidence available
Use for payments or other critical user flows, stateful services, high-risk external integrations, and major schema or protocol changes.
Changes that impact critical user flows or monetization.Example scenarioEvidence available
Example: in a staged Kubernetes release, route 20% of stateless API traffic through a canary selector.
# Phase 1: Stateless services (20% traffic) kubectl patch service api-service -p '{"spec":{"selector":{"version":"canary"}}}'When to avoid and caveatsEvidence available
Avoid or proceed carefully for trivial fixes, inadequate observability, or complex or unsafe rollback paths.
When NOT to use / overuse: - For trivial fixes that increase release friction. - When observability is insufficient to detect failures.On premises: development, deployment, and operationsEvidence available
Customer on-premises data centers can also deploy and operate Kubernetes-based services.
our newest service offering: Bitmovin Managed On-Premise encodingCloud: development, deployment, and operationsEvidence available
Run in parallel with the existing production version without downtime and control the traffic split.
Canary release : Deploys a new release in parallel with the original production environment (similar to Blue-Green), with no downtime.Kubernetes: development, deployment, and operationsEvidence available
In Kubernetes, deploy a canary alongside the stable version and compare them to decide whether to promote or reject the canary.
A canary deployment strategy deploys new versions of an application next to stable, production versions.Incident responseEvidence available
If an alert indicates a health metric affecting users, stop the rollout immediately and investigate.
the rollout should immediately halt and an investigation into the cause of the alert should be performedBenefitsEvidence available
Improves application reliability and reduces deployment risk.
Blue/green, canary, and rolling deployments all improve application reliability and reduce risk.Drawbacks and trade-offsEvidence available
Rolling back during peak traffic can cause temporary service degradation while the stable ReplicaSet scales up.
Possible brown-out as the stable RS scales.Representative tools and technologiesEvidence available
Spinnaker can poll a deployment verification API to evaluate canary health against thresholds.
one Spinnaker node on the stack that actually queries this API and polls it for durationAdditional references (21)
- Google SRE - Canary Release: Deployment Safety and Efficiency ↗
- Deploy a Release Using a Canary Deployment | Kubernetes ↗
- Implement zero-downtime deployments with blue/green, canary, and rolling strategies | Well-Architected Framework | HashiCorp Developer ↗
- Use a canary deployment strategy | Cloud Deploy | Google Cloud Documentation ↗
- Untitled result ↗
- What is Canary Deployment? When and How To Use It Effectively ↗
- What is Canary deployment? Meaning, Architecture, Examples, Use Cases, and How to Measure It (2026 Guide) - CLoudOps Now! ↗
- Canary Deployments: Pros, Cons, And 5 Critical Best Practices ↗
- How Bitmovin is Doing Multi-Stage Canary Deployments with Kubernetes in the Cloud and On-Prem | Kubernetes ↗
- Use a canary deployment strategy for Kubernetes - Azure Pipelines | Microsoft Learn ↗
- Deploy an app on Kubernetes ↗
- Azure Kubernetes Service (AKS) production upgrade strategies - Azure Kubernetes Service | Microsoft Learn ↗
- Zero-Downtime Migration to Azure Kubernetes Service (AKS) - Azure Kubernetes Service | Microsoft Learn ↗
- Serverless operations | CNCF ↗
- Architecture strategies for safe deployment practices - Microsoft Azure Well-Architected Framework | Microsoft Learn ↗
- 15.07 — Rollback playbook - The Bookstore Guide — Kubernetes from Zero to Production ↗
- Recommendations for designing a deployment failure mitigation strategy - Power Platform | Microsoft Learn ↗
- Deployment Rollback Runbook | Doc | StackPractices ↗
- Rollback | MinimumCD Practice Guide ↗
- Rollback Made It Worse: 5-Layer CI/CD Auto-Rollback Architecture and 4 Production Pitfalls | SRE Engineering Practice ↗
- Prod Lessons - Deployment Validation and Graceful Degradation - InfoQ ↗