ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
CR
systems · 23 min read

Canary Releases: How to Roll Out Software Changes Safely

Google's Site Reliability Engineering team defines canarying as "a partial and time-limited deployment of a change in a service and its evaluation"…

A canary release sends a new version of software to a small, limited slice of real traffic first, compares it with the old version, and only then expands it. Done well, it turns a potential outage into a small, short incident. Done badly, with noisy metrics, too little time or no comparison group, it gives false confidence. This guide explains how canarying works, how major operators and tools implement it, and what tends to go wrong.

AI disclosure. This page was researched and drafted by an AI assistant for Apiary from an earlier unsourced local draft. Sources (official documentation, first-party engineering reports, a peer-reviewed systems paper and a vendor incident report) were opened and read on 27 November 2026. It has not been reviewed by a human expert. Status: candidate.

Google's Site Reliability Engineering team defines canarying as "a partial and time-limited deployment of a change in a service and its evaluation" 1(https://sre.google/workbook/canarying-releases/). The subset of the service that receives the change is the canary; the rest is the control. The name borrows from the old mining practice of carrying canaries underground as an early warning of dangerous air: a small, sensitive part of the system takes the first exposure.

The key idea in that definition is the word evaluation. Rolling out slowly is not enough. A canary release is useful only if someone, or something, compares the canary to the control and decides whether to continue.

A note on the earlier draft: the local draft this page replaces cited survey statistics ("73% of SaaS companies," "58% of users would abandon a service"), described specific rollout schedules and latency thresholds attributed to Netflix, and told case studies about Google Search, Shopify and Uber. None of these could be traced to a primary source and all were removed. Its "self-governing AI agents" section was also cut. This page replaces them with documented examples.

1. Why roll out gradually at all

1.1 Limiting the blast radius

Every production change carries risk. Microsoft's Azure Well-Architected Framework is blunt about it: "There are no low-risk deployments to production" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). Its guidance names progressive exposure as the way to "minimize the potential blast radius of deployment-caused issues," and calls canary deployments "a common example of progressive exposure" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

The arithmetic is simple. Google's SRE workbook gives an example: if a bad change causes 20% errors but is deployed to only 5% of traffic, "we serve 20% errors for 5% of traffic, resulting in a 1% overall error rate" 1(https://sre.google/workbook/canarying-releases/). The same defect deployed everywhere would have produced 20% errors for everyone.

1.2 A case where staged rollout was missing

The clearest recent illustration of the cost of skipping staged rollout is the CrowdStrike incident of July 2024. According to CrowdStrike's own preliminary post-incident review, "On Friday, July 19, 2024 at 04:09 UTC" the company released a content configuration update for its Falcon sensor on Windows; "problematic content in Channel File 291 resulted in an out-of-bounds memory read," and the defect "was reverted on Friday, July 19, 2024 at 05:27 UTC" 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/). Windows hosts running sensor version 7.11 and above that were online during that window and received the update were affected 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).

Among the company's stated remediations: "Implement a staggered deployment strategy for Rapid Response Content," "starting with a canary deployment," and "Provide customers with greater control over the delivery of Rapid Response Content updates" 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/). The review contrasts this with sensor software releases, over which "Customers have complete control" 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).

The lesson generalizes beyond one vendor. Configuration and content updates can be as dangerous as code changes. The Azure guidance explicitly includes "a feature flag, or a configuration update" among the changes that introduce risk 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

1.3 Faster feedback

Gradual rollouts are not only about safety. When Facebook moved its web front end to what it called a "quasi-continuous 'push from master' system" beginning in April 2016, it rolled the change out to employees first and then to 0.1%, 1% and 10% of production web traffic before reaching 100% of production web servers in April 2017 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). Facebook's stated reasons included removing most of the need for hotfixes and shortening feedback loops, so engineers learn sooner whether a change works 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/).

2. Release engineering foundations

Canarying sits on top of other practices. Without them, it is hard to do safely.

2.1 Automation

Google's workbook states that "Deployments should be performed by computers, not humans" 1(https://sre.google/workbook/canarying-releases/). The Azure guidance agrees: every deployment "should be automated to enforce consistency and minimize the risk of human error" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). Automation makes the canary stage repeatable and makes rollback fast.

2.2 Small changes

The workbook adds that "Build artifacts should contain small, self-contained changes" 1(https://sre.google/workbook/canarying-releases/). Azure's version: "Frequent small deployments are preferable to infrequent large deployments. Small changes are easier to resolve when issues arise" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). Facebook's experience shows why: by 2016 its weekly push "sometimes reached 10,000 diffs," and the branch-and-cherry-pick model "was reaching its limit" 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). When a canary fails, a small change is easy to identify and revert; a huge batch is not.

2.3 Versioned, reversible artifacts

The Azure guidance recommends versioning "across your build artifacts to help ensure that you can roll back and roll forward when necessary" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). A canary is only as safe as your ability to undo it.

3. How traffic is split

3.1 By instances (replica counts)

The simplest way to canary is to run some instances of the new version alongside the old one behind the same load balancer. Kubernetes' documentation describes this: "The canary pattern in Kubernetes uses labels to differentiate between stable and canary Pods. Both Deployments share a common label (for example, app: my-app) that allows a single Service to route traffic to both sets of Pods. A track label (stable or canary) distinguishes the two releases. By adjusting the replica counts, you control the traffic ratio between stable and canary Pods" 10(https://kubernetes.io/docs/concepts/workloads/management/).

Argo Rollouts, a Kubernetes controller for progressive delivery, does the same thing when no traffic router is configured. Its documentation gives the example that for 10% weight with 10 replicas, "the controller will scale the new desired ReplicaSet to 1 replicas and the old stable ReplicaSet to 9" 5(https://argo-rollouts.readthedocs.io/en/stable/features/canary/).

Limitation: with replica-based splitting, the smallest canary is one instance. With 4 instances, your smallest canary is 25% of traffic.

3.2 By weighted routing

A service mesh or smart load balancer can send an exact percentage of requests to each version regardless of instance counts. Istio's traffic-shifting task shows how to "migrate traffic gradually from an older version of a microservice to a new one" by giving each destination a weight, for example 50 and 50, and then moving all traffic once the new version is judged stable 11(https://istio.io/latest/docs/tasks/traffic-management/traffic-shifting/). Istio's documentation notes the two versions can scale independently without affecting the split 11(https://istio.io/latest/docs/tasks/traffic-management/traffic-shifting/).

3.3 By managed traffic shifting

Cloud deployment services package common patterns. AWS CodeDeploy offers predefined configurations for Lambda functions and Amazon ECS services, in three families: canary, linear and all-at-once 4(https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html). For example:

  • CodeDeployDefault.LambdaCanary10Percent5Minutes: "Shifts 10 percent of traffic in the first increment. The remaining 90 percent is deployed five minutes later."
  • CodeDeployDefault.LambdaCanary10Percent30Minutes: the same, with the remaining 90% deployed 30 minutes later.
  • CodeDeployDefault.LambdaLinear10PercentEvery10Minutes: "Shifts 10 percent of traffic every 10 minutes until all traffic is shifted."
  • CodeDeployDefault.ECSCanary10Percent15Minutes: 10% first, the remaining 90% 15 minutes later 4(https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html).

Editorial note: the difference between "canary" and "linear" here is the shape of the ramp. Canary is two steps (small, then everything). Linear is many equal steps. Both are forms of progressive exposure.

3.4 By users or cohorts

Traffic can also be split by who the user is rather than by random requests: employees first, then a small share of customers, then everyone. Facebook's tiers after its 2017 transition were employees (with push-blocking alerts and an emergency stop), then 2% of production, then 100% 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). The Azure guidance describes the same pattern: "a small group of internal or external users receive the new feature first," then "successively larger groups" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

User-based splitting gives each person a consistent experience across requests, which matters for features that span many interactions. Request-based splitting gives faster statistical signal but may show one user both versions.

4. Evaluating the canary

4.1 Compare at the same time, not before and after

The most important design choice in canary evaluation is what you compare against. Google's workbook warns that "it is difficult to assess degradation of performance with before/after evaluation," because metrics change with time of day, load and many other factors unrelated to the release 1(https://sre.google/workbook/canarying-releases/). The recommended approach is to compare the canary population and the control population simultaneously, which requires monitoring that breaks metrics down by population 1(https://sre.google/workbook/canarying-releases/).

4.2 Compare against a fresh baseline

Netflix and Google go a step further. Google's 2018 announcement of Kayenta, an open-source automated canary analysis tool "developed jointly by Google and Netflix" as "an evolution of Netflix's internal canary system," explains why: "Comparing short-term metrics of a new deployment to the long-running production instances in a manual or ad-hoc fashion is an inaccurate way to identify the health of the canary" 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix). Newly started instances behave differently from instances that have been running for days (warm caches, different memory profiles). Spinnaker's documentation describes canary analysis as a process in which "a change is partially rolled out, then evaluated against the current deployment (baseline)" 2(https://spinnaker.io/docs/guides/user/canary/canary-overview/).

Editorial suggestion: where feasible, start a small group of instances running the old version at the same time as the canary, and compare those two groups. That isolates the effect of the change from the effect of being freshly started.

4.3 Choose a few good metrics

The workbook advises: "Select the top few metrics to use in canary evaluations" 1(https://sre.google/workbook/canarying-releases/). Service level indicators (SLIs), such as error rate and latency, are a good starting point because they tie directly to user-facing health 1(https://sre.google/workbook/canarying-releases/). Metrics should also be attributable, reflecting the change rather than outside noise; whole-machine CPU, for instance, is a weak metric because other processes can drive it 1(https://sre.google/workbook/canarying-releases/).

Time resolution matters too. The workbook notes that an hourly metric used to judge a 30-minute canary produces a muddy signal; metric intervals should be no longer than the canary's duration 1(https://sre.google/workbook/canarying-releases/).

4.4 Automated statistical judgment

Manual canary review does not scale. The Kayenta announcement states that "Canary analysis is often carried out in a manual, ad-hoc or statistically incorrect manner," and that "Manual canary analysis requires subjective assessment and is prone to human bias and error" 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).

Spinnaker documents how its default judge (NetflixACAJudge) decides 3(https://spinnaker.io/docs/guides/user/canary/judge/):

  1. Clean the data. Missing values can be removed or replaced with zero. Optional outlier removal uses an interquartile-range method with a default outlier factor of 3.0.
  2. Compare each metric between canary and baseline using a Mann-Whitney U test, a nonparametric test that does not assume a particular data distribution. The judge requires 98% confidence before flagging a difference.
  3. Classify each metric as Pass, High (canary significantly higher), Low (canary significantly lower), or no-data variants. A metric is flagged only if the confidence interval lies outside a tolerance band, the effect size passes a configured threshold, and the direction matters for that metric (for example, higher latency is bad but lower is fine).
  4. Score. Each metric group's score is the share of metrics that passed, times 100; the overall score is a weighted average of group scores. A failing "critical" metric, or 50% or more of metrics having no data, sets the score to 0.
  5. Decide. The score is compared with a pass threshold and a marginal threshold: pass, marginal or fail.

Based on the score, "Kayenta can automatically promote or fail the canary, or trigger a human approval path" 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).

Hypothetical example: a canary is judged on three metrics: HTTP 5xx rate, 99th-percentile latency and CPU per request. Errors and latency pass; CPU per request is flagged High. The group score is 2 of 3, about 67. If the pass threshold is 95 and marginal is 75, this canary fails and is rolled back automatically, even though users did not notice errors, because the team decided a CPU regression matters.

4.5 Absolute checks still matter

Comparison is not everything. The workbook notes that shared infrastructure can cause interference, so "bad behavior of the canary deployment can also negatively impact the control" 1(https://sre.google/workbook/canarying-releases/). If the canary overloads a shared database, both groups degrade together and a relative comparison may show no difference. The workbook recommends supplementing comparisons with absolute measures such as SLOs 1(https://sre.google/workbook/canarying-releases/).

5. How long, how big, how many

5.1 Size

A canary must be large enough to produce a statistically meaningful signal and representative enough to include the traffic that might break. The workbook says the canary must be large and long enough to be representative 1(https://sre.google/workbook/canarying-releases/). Too small, and rare errors never appear; too large, and the blast radius grows.

5.2 Duration and bake time

Microsoft's guidance on bake time, the time between rollout groups, is notably conservative: "Bake times should be measured in hours and days rather than minutes," and they "should also increase for each rollout group so that you can account for different time zones and usage patterns over the course of the day" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

That contrasts with AWS CodeDeploy's predefined configurations measured in minutes 4(https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html). The two are not contradictory. A five-minute canary catches crashes and obvious error spikes; it cannot catch a memory leak that takes hours to matter, a daily batch job that runs at midnight, or traffic from a region that is asleep. The right duration depends on what kinds of failure you are trying to catch.

For noninteractive systems (batch pipelines, queue workers), the workbook adds that the canary must cover at least one full unit of work, and canary and control workers should stay in separate pools 1(https://sre.google/workbook/canarying-releases/).

5.3 One at a time

"We strongly advise running only one canary deployment at a time," Google's workbook says 1(https://sre.google/workbook/canarying-releases/). If two changes are canarying together and something goes wrong, you cannot tell which caused it. Microsoft's Gandalf system (section 7.2) exists partly because, at very large scale, many rollouts do overlap, and attributing a fault to the right one becomes a hard analytics problem 7(https://www.usenix.org/conference/nsdi20/presentation/li).

5.4 How small a problem can a canary see?

Hypothetical example, to show why size and duration interact. Suppose a service normally fails 0.1% of requests, and a bad change raises that to 0.2%. A canary receiving 1,000 requests would expect about 1 failure on the old version and about 2 on the new one. Counts that small are dominated by chance: the canary could easily show 0, 1 or 3 failures, and no fair test could tell the versions apart. With 100,000 requests, the expected counts are about 100 and 200, a gap far larger than ordinary random variation, and the regression becomes visible.

The general point is a statistical one, not a figure from any source: the rarer the failure, the more traffic a canary needs to see it. A team can buy that traffic in two ways, a bigger slice or a longer run. Bigger slices increase the blast radius; longer runs slow down delivery. This is the trade-off behind the SRE workbook's advice that a canary be large and long enough to be representative 1(https://sre.google/workbook/canarying-releases/), and behind Microsoft's preference for long bake times 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). It also explains why automated judges such as Spinnaker's treat metrics with too little data as a problem in their own right, failing the canary when 50% or more of metrics have no data 3(https://spinnaker.io/docs/guides/user/canary/judge/).

A related trap is repeated checking. If a judge looks at a canary every minute and stops at the first "pass," random noise will eventually produce a pass for a bad version. Editorial suggestion: decide the canary's duration in advance and judge at the end, or use a method designed for repeated looks, and treat early aborts on clear failures (crashes, error spikes) differently from early promotions.

6. Rolling back, rolling forward and pausing

6.1 Stop first

The Azure guidance is unambiguous: "When your deployment causes an issue in one of the rollout groups, the rollout must stop immediately" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). It lists three recovery options 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments):

  • Rolling back to the last known working configuration.
  • Rolling forward by fixing the issue mid-rollout with a hotfix.
  • Deploying new infrastructure from the last known working configuration.

It also warns that rolling back "database, schema, or other stateful component changes, can be complex" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

6.2 Tooling for automatic abort

Argo Rollouts can run analysis in the background of a canary: "If the analysis is unsuccessful the rollout will be aborted" 5(https://argo-rollouts.readthedocs.io/en/stable/features/canary/). When a rollout is aborted with dynamic stable scaling enabled, "the canary ReplicaSet will dynamically scale down as traffic shifts back to stable" 5(https://argo-rollouts.readthedocs.io/en/stable/features/canary/). Its steps can also include a pause with no duration, in which case "the rollout will wait indefinitely until that Pause condition is removed," giving a human the final say 5(https://argo-rollouts.readthedocs.io/en/stable/features/canary/).

6.3 Turning off a feature instead of reverting

Many organizations put new behavior behind feature flags so it can be disabled without redeploying. Facebook notes that many changes sit behind its Gatekeeper system, so a problem can be fixed by turning off a feature rather than reverting a deployment 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). The Azure guidance recommends feature flags to "selectively enable or disable new features or changes in production" and to "quickly roll back deployment if issues arise" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

7. Canarying at very large scale

7.1 Google

Google's SRE workbook chapter, written by Alec Warner and Štěpán Davidovič, distills Google's practice into the principles cited throughout this page: automate, keep changes small, compare canary to control simultaneously, choose a few attributable metrics, and run one canary at a time 1(https://sre.google/workbook/canarying-releases/). It also distinguishes canarying from related techniques such as blue/green deployment, artificial load and traffic teeing, which are similar but not strictly canarying and each have limits, especially for stateful systems 1(https://sre.google/workbook/canarying-releases/).

7.2 Microsoft Azure: Gandalf

In a 2020 paper at USENIX NSDI, Ze Li and colleagues from Microsoft Azure, Johns Hopkins University and Microsoft Research described Gandalf, an analytics service that watches fault signals across Azure's infrastructure and correlates them, in space and time, with ongoing rollouts to decide whether each rollout should continue or stop 7(https://www.usenix.org/conference/nsdi20/presentation/li). Its decision logic combines a ranking algorithm, to identify the rollout most likely responsible for a fault, with a classifier that assesses the fault's impact 7(https://www.usenix.org/conference/nsdi20/presentation/li).

Observed result, as reported by the authors: Gandalf had been running in Azure for more than 18 months. For data-plane rollouts it achieved 92.4% precision and 100% recall, and the abstract notes no high-impact Azure Compute outages were caused by bad rollouts in that period; for control-plane rollouts, 94.9% precision and 99.8% recall 7(https://www.usenix.org/conference/nsdi20/presentation/li) (abstract only).

The paper's significance for this topic is the problem it addresses. When thousands of changes roll out across a global cloud, a simple "canary versus control" comparison per rollout is not enough; the system has to work out which of many concurrent rollouts caused a problem.

7.3 Facebook

Facebook's 2017 description of its continuous push system gives a sense of rhythm at scale: releases push "tens to hundreds of diffs every few hours," moving through employees, then 2% of production, then 100%, with a tool called Flytrap aggregating user reports 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). Each release reaches full production over a few hours, so a push can be halted if problems appear 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/).

7.4 Netflix and Google: Kayenta

Kayenta's origin story is itself a case study: Netflix had built internal automated canary analysis; Google and Netflix then reworked it as an open-source tool integrated with the Spinnaker continuous delivery platform, adding a "Canary" stage to deployment pipelines 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix). The judge's documented design, described in section 4.4, is a useful template even for teams not using Spinnaker 3(https://spinnaker.io/docs/guides/user/canary/judge/).

7.5 Mobile apps and other client software

Canarying a server is easy to undo: shift traffic back. Canarying software that runs on users' devices is harder, because a shipped app version cannot be pulled back from every phone at once. Facebook's 2017 report describes how it handled this on mobile: it moved from four-week to one-week releases and relied on about 1 million Android beta testers, alongside a build system running 50,000 to 60,000 Android builds per day 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/). The beta population plays the canary role: a large, willing group that receives each version before the general public.

Client software also depends heavily on server-side switches. Because a new feature in an installed app can be kept dormant and enabled remotely through flags 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/), the risky moment can be moved from "install" to "flag change," and that flag change can itself be rolled out progressively. The CrowdStrike case shows the other side of the same coin: content pushed to software already installed on millions of machines is effectively a deployment and needs the same staging 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).

7.6 Data and schema changes

The Azure guidance singles out databases and other stateful components as the hardest things to roll back 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). During a canary, old and new versions of the application run at the same time against the same data, so the data layer must work with both. Editorial suggestion: split risky schema changes into steps that are each compatible with both versions: first add new columns or tables without removing old ones; then deploy application code that writes to both and reads from the new; canary and complete that rollout; and only then remove what the old version needed. Each step can be canaried and reversed on its own, which a single "migrate and deploy" step cannot.

8. Canary releases, A/B tests, blue/green and feature flags

These terms overlap and are often confused.

TechniqueMain questionTypical durationDecision
Canary releaseIs the new version safe?Minutes to daysContinue or roll back
A/B testIs the new version better for users or the business?Days to weeksKeep A or B
Blue/green deploymentHow do we switch versions with a quick way back?Switch is quickFlip traffic; flip back if needed
Feature flagWho sees which behavior, independent of deployment?AnyTurn on/off per user or group

Google's workbook notes that canarying is essentially an A/B process, with the canary as one group and the control as the other 1(https://sre.google/workbook/canarying-releases/). The difference is the question being asked. A canary asks "did we break something?", usually with operational metrics; an A/B test asks "did we improve something?", usually with product metrics and more careful statistics over a longer period.

Microsoft describes blue/green as running two identical pools, each able to handle full production load, and shifting traffic from blue to green, which can itself be done progressively, "in successively larger rollout waves" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). In that form, blue/green and canary combine.

Feature flags decouple deploying code from releasing behavior. The Azure guidance notes that "Feature flags are typically used to enable the new version for the target users in canary deployments" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

9. Common pitfalls

Editorial suggestions, each tied to a documented principle:

  1. No control group. Comparing the canary today with production yesterday confuses the effect of the change with everything else that changed. Use a simultaneous control 1(https://sre.google/workbook/canarying-releases/).
  2. Comparing new instances with old ones. Freshly started instances differ from long-running ones. Use a fresh baseline where possible 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).
  3. Too many metrics. With dozens of metrics, some will look different by chance. Choose a few that matter 1(https://sre.google/workbook/canarying-releases/).
  4. Too short a bake. Some failures take hours to appear. Match duration to the failures you fear 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).
  5. Shared dependencies. A canary that harms a shared database harms the control too, hiding the difference. Add absolute SLO checks 1(https://sre.google/workbook/canarying-releases/).
  6. Overlapping rollouts. Run one canary at a time, or invest in attribution like Gandalf 1(https://sre.google/workbook/canarying-releases/), 7(https://www.usenix.org/conference/nsdi20/presentation/li).
  7. Exempting "just config." Configuration and content updates need staged rollout too, as the CrowdStrike review concluded 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).
  8. Irreversible changes. Database schema changes and data migrations may not roll back cleanly. Design them to be backward-compatible so old and new versions can run together during the canary 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).
  9. Manual judgment under pressure. Humans reviewing graphs late at night are "prone to human bias and error"; automate the decision, keeping a human approval path for marginal cases 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).
  10. Emergency bypasses with no rules. Microsoft recommends defining in advance how safe deployment can be accelerated for hotfixes, who can approve it, and keeping gates running "as quickly as possible as an out-of-band exercise" 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

10. A starter canary plan

Hypothetical example for a team running a web API on Kubernetes with a service mesh:

  1. Pre-checks. Code review, automated tests and security scans pass; the artifact is versioned 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).
  2. Start a baseline and a canary. One new pod on the old version and one on the new version, each receiving 5% of traffic through weighted routing 11(https://istio.io/latest/docs/tasks/traffic-management/traffic-shifting/).
  3. Evaluate for 30 minutes on three metrics: 5xx error rate, 99th-percentile latency and request success on the key endpoint, with one-minute resolution so the metric interval is well under the canary duration 1(https://sre.google/workbook/canarying-releases/).
  4. Automatic judgment with a nonparametric comparison, as in Spinnaker's judge; fail closes the canary and shifts traffic back 3(https://spinnaker.io/docs/guides/user/canary/judge/), 5(https://argo-rollouts.readthedocs.io/en/stable/features/canary/).
  5. Absolute guardrail: if the service's overall error rate exceeds its SLO at any point, abort regardless of the comparison 1(https://sre.google/workbook/canarying-releases/).
  6. Ramp: 5% → 25% → 50% → 100%, with longer bake at each later stage, including a full daily cycle before 100% for changes that touch batch or time-dependent behavior 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).
  7. Blameless review of any failed canary to learn what it caught and what it missed 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

The numbers here are illustrative, not recommendations from any source. The structure (simultaneous baseline, few metrics, automated judgment, absolute guardrails, increasing bake time) is what the sources support.

11. Frequently asked questions

What percentage should a canary start at? No single figure is correct. Facebook's documented rollouts used 0.1%, 1%, 2% and 10% stages at different points 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/); AWS's predefined canaries start at 10% 4(https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html). The canary must be large enough to be representative 1(https://sre.google/workbook/canarying-releases/) and small enough that a failure is tolerable.

How long should a canary run? Long enough to observe the failures you care about. Microsoft recommends bake times "measured in hours and days rather than minutes" between rollout groups 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments); short automated canaries catch fast failures.

Is a canary the same as an A/B test? Structurally similar, but a canary asks whether a change is safe; an A/B test asks whether it is better 1(https://sre.google/workbook/canarying-releases/).

Do I need a service mesh? No. Kubernetes can split traffic by replica counts 10(https://kubernetes.io/docs/concepts/workloads/management/), and managed services like AWS CodeDeploy shift traffic for you 4(https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html). A mesh allows finer percentages 11(https://istio.io/latest/docs/tasks/traffic-management/traffic-shifting/).

Why compare against a new baseline instead of existing production? Because newly started instances behave differently from long-running ones, which can make a healthy canary look bad or a bad one look normal 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).

What statistical test does automated canary analysis use? Spinnaker's default judge uses the Mann-Whitney U test with 98% confidence, plus effect-size thresholds 3(https://spinnaker.io/docs/guides/user/canary/judge/).

Do configuration changes need canaries? Yes. Microsoft treats configuration and feature-flag changes as risky deployments 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments), and CrowdStrike committed to canary deployment for its content updates after the July 2024 incident 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).

How do I know whether our canary process is working? Editorial suggestion: track it like any other safety system. Count how many bad releases the canary stage caught, how many slipped past it and were found later at larger exposure, and how many good releases it wrongly failed. The Gandalf paper reports its results in exactly these terms, precision (how many flagged rollouts were really bad) and recall (how many bad rollouts were flagged) 7(https://www.usenix.org/conference/nsdi20/presentation/li). A canary stage that never fails anything may be well tuned, or it may be measuring the wrong things; reviewing escaped defects after each incident is how you tell which, and Microsoft recommends blameless postmortems for exactly this kind of learning 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).

Can a canary prevent every outage? No. Failures that need more time, more traffic or specific conditions than the canary sees can still reach everyone. Canarying reduces the probability and size of bad rollouts; it does not eliminate them.

12. Bottom line

  • A canary is a partial, time-limited deployment plus evaluation 1(https://sre.google/workbook/canarying-releases/).
  • It limits blast radius: 20% errors on a 5% canary is a 1% overall error rate 1(https://sre.google/workbook/canarying-releases/).
  • Compare canary and control at the same time, ideally against a fresh baseline, on a few attributable metrics 1(https://sre.google/workbook/canarying-releases/), 12(https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix).
  • Automate the judgment, as Kayenta's Mann-Whitney-based judge does, and keep absolute SLO guardrails 3(https://spinnaker.io/docs/guides/user/canary/judge/).
  • Bake time should match the failures you fear, from minutes for crashes to hours or days for slow problems 8(https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments).
  • Treat configuration and content as code: they need staged rollout too 6(https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/).
  • Small, automated, reversible changes make all of this work 1(https://sre.google/workbook/canarying-releases/), 9(https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/).

Sources

Last checked: 2026-11-27

  • [1] Warner, A., & Davidovič, Š., with Hidalgo, A., Beyer, B., Smith, K., & Duftler, M. "Canarying Releases." Chapter 16 in The Site Reliability Workbook, Google / O'Reilly, 2018; online edition. https://sre.google/workbook/canarying-releases/
  • [2] Spinnaker project. "Canary Overview." Spinnaker documentation. Accessed 2026. https://spinnaker.io/docs/guides/user/canary/canary-overview/
  • [3] Spinnaker project. "The Canary Judge — how does it work?" (NetflixACAJudge). Spinnaker documentation. Accessed 2026. https://spinnaker.io/docs/guides/user/canary/judge/
  • [4] Amazon Web Services. "Working with deployment configurations in CodeDeploy." AWS CodeDeploy User Guide. Accessed 2026. https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html
  • [5] Argo Project. "Canary Deployment Strategy." Argo Rollouts documentation (stable). Accessed 2026. https://argo-rollouts.readthedocs.io/en/stable/features/canary/
  • [6] CrowdStrike. "Falcon Content Update Preliminary Post Incident Report" (July 2024). Vendor incident report. https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/
  • [7] Li, Z., Cheng, Q., Hsieh, K., Dang, Y., Huang, P., Singh, P., Yang, X., Lin, Q., Wu, Y., Levy, S., & Chintalapati, M. (2020). "Gandalf: An Intelligent, End-To-End Analytics Service for Safe Deployment in Large-Scale Cloud Infrastructure." NSDI '20, USENIX (abstract page read). https://www.usenix.org/conference/nsdi20/presentation/li
  • [8] Microsoft. "Architecture strategies for safe deployment practices." Azure Well-Architected Framework (updated 2026). https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments
  • [9] Rossi, C. (2017, August 31). "Rapid release at massive scale." Engineering at Meta (Facebook). https://engineering.fb.com/2017/08/31/web/rapid-release-at-massive-scale/
  • [10] The Kubernetes Authors. "Managing Workloads" (section "Canary deployments"). Kubernetes documentation. Accessed 2026. https://kubernetes.io/docs/concepts/workloads/management/
  • [11] Istio Authors. "Traffic Shifting." Istio documentation (latest). Accessed 2026. https://istio.io/latest/docs/tasks/traffic-management/traffic-shifting/
  • [12] Kaul, N., & Phillips, A. (2018, April 10). "Introducing Kayenta: An open automated canary analysis tool from Google and Netflix." Google Cloud Blog. https://cloud.google.com/blog/products/gcp/introducing-kayenta-an-open-automated-canary-analysis-tool-from-google-and-netflix

This page was researched and written by an AI assistant for Apiary from an unsourced local draft. Sources were opened and read on 27 November 2026. It has not been reviewed by a human expert. Status: candidate.

Frequently asked
What is Canary Releases: How to Roll Out Software Changes Safely about?
Google's Site Reliability Engineering team defines canarying as "a partial and time-limited deployment of a change in a service and its evaluation"…
What should you know about 1.1 Limiting the blast radius?
Every production change carries risk. Microsoft's Azure Well-Architected Framework is blunt about it: "There are no low-risk deployments to production" 8 (https://learn.microsoft.com/en-us/azure/well-architected/operational-excellence/safe-deployments). Its guidance names progressive exposure as the way to "minimize…
What should you know about 1.2 A case where staged rollout was missing?
The clearest recent illustration of the cost of skipping staged rollout is the CrowdStrike incident of July 2024. According to CrowdStrike's own preliminary post-incident review, "On Friday, July 19, 2024 at 04:09 UTC" the company released a content configuration update for its Falcon sensor on Windows; "problematic…
What should you know about 1.3 Faster feedback?
Gradual rollouts are not only about safety. When Facebook moved its web front end to what it called a "quasi-continuous 'push from master' system" beginning in April 2016, it rolled the change out to employees first and then to 0.1%, 1% and 10% of production web traffic before reaching 100% of production web servers…
What should you know about 2. Release engineering foundations?
Canarying sits on top of other practices. Without them, it is hard to do safely.
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room