Skip to content
WebsiteHosting.com

procedure Operations & procedures

Canary rollout signal detection and rollback choices

Compare canary and control error rates without losing sight of request counts. Learn when a critical signal means stop, when to collect more evidence and why meeting a threshold is not approval to roll out.

Latest recorded source check · P0190

What it means

A canary rollout gives a limited share of requests to a new release. To decide whether to expose more traffic, compare that group (the canary) with requests served by the existing release (the control) over the same period. Check for reasons to stop before interpreting a small difference in error rates. Even zero errors in the canary mean only that none were observed in those requests, not that the release is safe.

Try it

Simulation — compare two synthetic groups. Nothing here changes a deployment. Start with 2 errors in 100 canary requests and 10 errors in 1,000 control requests. The canary had fewer errors but a higher error rate: 2% versus 1%, a difference of 1 percentage point.

Canary rollout signal detection and rollback choices

Explain sample-size limits and guardrails in incremental releases

Simulation
Modeled outcome: Sample insufficient

At least one group has too few observations for the selected policy.

Canary rollout signal detection and rollback choices: synthetic scenario inputs
Replaces all inputs with the documented starting example and the indicated change. Reset restores the starting example.
Canary and control error evidence

Comparison

  1. Difference (percentage points)1
  2. Minimum sample200
  3. Critical signalabsent
  4. Outcomesample-insufficient

Exact guardrail comparisons

  1. Absolute guardrail100 × 2/100 % < 3%
  2. Relative guardrailNot evaluated / established
Canary error rate2 %
Reference: 3 %
Control error rate1 %

The bars and difference are rounded to two decimals, not a statistical confidence test. The exact fraction comparisons show only evaluated guardrails. Critical and absolute-stop gates precede minimum-sample and relative gates.

Evaluated inputs

Required scenario evidence
provided
Canary errors
2 count
Canary requests
100 count
Control errors
10 count
Control requests
1000 count
Critical safety signal
absent
Canary absolute error limit
3 %
Minimum per cohort
200 count

Not evaluated: Allowed excess error rate

Assumed comparable contemporaneous cohorts, no hypothesis test or guaranteed rare-fault detection. Critical and absolute STOP evaluated before sample sufficiency; relative test only after minimum counts. No live deployment, rollback or authorization.

About this model

The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.

Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.

The initial result is too few observations. There is no critical signal, and 2% is below the canary's 3% absolute limit. But the policy requires at least 200 requests in each group. The 1,000 control requests cannot make up for the 100 canary requests. The model can display the difference without yet using it to decide whether the canary is eligible.

  1. Change Canary requests to 1,000, then Canary errors to 20. Leave the control and limits unchanged. The rates are still 2% and 1%. What changed is the amount of evidence: both groups now meet the minimum, so the policy compares the 1-point difference with the allowed 2 points. The result is eligible for further evaluation, not approval to promote.
  2. Keeping the canary at 1,000 requests, change Canary errors to 31. Its rate is now 3.1%. The result is STOP because the canary exceeded the 3% absolute limit; no comparison with the control is needed to make that decision.
  3. Use Reset to return to the original counts, limits and signal settings, with the canary again below the sample minimum.

Why the checks come in this order

The absolute limit asks, “Is the canary error rate too high on its own?” The relative limit asks, “How much worse is the canary than the control?” They can give different answers. With 30 errors in 1,000 canary requests and none in 1,000 control requests, the canary is at the 3% absolute limit, not above it. But 3% minus 0% is 3 percentage points, above the 2-point allowance. That difference is a reason to stop and investigate, not proof that the new release caused the errors.

A critical signal answers a different question again. Under this policy, a known critical signal means STOP even with no canary requests. In contrast, if there is no critical signal, the canary is below its absolute limit and the control has served no requests, the comparison is unknown. Zero errors in zero requests is not a 0% error rate. Look for the missing observations rather than substituting a favorable rate.

With the default 100 canary requests, the minimum-sample gate prevents a relative decision. A supplied critical fault still produces STOP because that gate precedes sample sufficiency. A low rate in the control group does not override the critical observation. This example validates a decision rule; it does not calculate statistical power or authorize a rollback.

The displayed rates are rounded. For a strict guardrail, inspect the exact fraction comparison: an excess of exactly two percentage points does not exceed a two-point limit. A rounded rate that equals the limit may still exceed it before rounding. A critical signal is evaluated first.

In practice

Before considering a real change, check what the counts describe. Use the same definition of an error and comparable traffic over matching observation windows. A shared dependency can affect both groups, so similar rates alone need not mean either group is healthy. If you cannot establish which release served the requests or which window the counts cover, stop the assessment rather than treating the difference as release evidence.

Use your service's release policy, not the example's numbers. An error budget policy specifies what to do when the service has spent its allowance for failures. Likewise, a release policy should distinguish a signal to halt expansion from a decision to roll back. This simulation neither measures budget consumption nor authorizes either action.

If a stop condition is met, do not expand the rollout. Preserve the prior deployment state and inspect the signal. Before any separately authorized rollback, confirm the affected scope, the version to restore and how you will verify it. Afterward, check both the deployed version and the original symptom; restoring a version and resolving a fault are different observations.

A sample minimum tells you when this policy permits a comparison, not how confident to be that a rare fault is absent. Read the result as a next step: collect the evidence that is missing, investigate a breached limit, or continue evaluation. None of those decisions requires calling the release safe.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Why require samples?

Sparse observations may miss rare failures. The illustrated minimum count is a policy condition, not a significance test or proof of safety after the minimum has been reached.

Should critical faults wait for sample size?

No under this example policy: a critical fault takes the STOP branch before checking minimum sample size.

Is passing canary an acceptance proof?

No. This policy checks stipulated rates, minimum counts and critical observations. It does not estimate rare-fault probability or authorize rollout; passing means only that the modeled stop gates did not trigger.

What should rollback preserve?

Retain the verified prior deployment state and the evidence needed to compare outcomes. After an authorized rollback, retest the original symptom and required health signals rather than assuming reversal proved recovery.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. Google SRE Workbook: Canarying releases

    Canarying Releases. Compare separate canary/control populations and absolute SLOs; shared dependencies and mismatched monitoring windows confound inference.

    Checked .

  2. Google SRE Workbook: Implementing SLOs

    Establishing an Error Budget Policy. Reliability response policies specify what action budget exhaustion warrants. Canary thresholds must be connected to an explicit release policy rather than treated as universal rollback values.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.