deploys · Aug 18, 2026
The Canary That Caught a Bad Config
A one-line config change looked harmless in review. The five percent canary showed a nine-fold jump in errors within four minutes. How the check works and what we changed afterwards.

Last Thursday a config change that nobody argued about in review would have taken down checkout for every customer at Wrenfield. It didn't, because the canary said no.
The change was one line. Dario had moved an upstream timeout from 3000 to 300, meaning to test a tighter setting on a staging path, and the edit rode along into the production file. Two reviewers read the diff. Both saw a number get smaller and assumed someone had measured it.
What the canary actually does
Every deploy we ship starts by sending five percent of traffic to the new version. We hold it there for ten minutes, or until the check decides, whichever comes first. The check reads the counters every two minutes and compares the canary's error rate with the baseline's over the same window, and it only has two rules.
First, the ratio of canary errors to baseline errors has to stay under two. Second, there have to be at least ten canary errors before the ratio counts at all, because three failures out of a few hundred requests is noise and we've paid for acting on noise before.
Here is the whole verdict, with the numbers from Thursday.
const baseline = { requests: 48200, errors: 41 };
const canary = { requests: 2480, errors: 19 };
const rate = (s) => s.errors / s.requests;
const ratio = rate(canary) / rate(baseline);
console.log(`baseline ${(rate(baseline) * 100).toFixed(3)}% canary ${(rate(canary) * 100).toFixed(3)}% ratio ${ratio.toFixed(1)}x`);
console.log(ratio > 2 && canary.errors >= 10 ? "ROLLBACK" : "PROMOTE");It prints a baseline of 0.085 percent, a canary of 0.766 percent, a ratio of 9.0x, and the word ROLLBACK.
How the four minutes went
At minute one the canary had served a few hundred requests and nothing looked wrong. At minute two the first reading was clean, with only a handful of errors, short of the ten the second rule wants. By minute three it had logged eleven timeouts and the ratio was already past five, but the check only reads on even minutes. At minute four it read nineteen errors and a ratio of 9.0x, and the pipeline rolled itself back. Imke, who was on call, got a message that said the deploy had been reverted and why. She didn't have to do anything.
Ninety-five percent of traffic never touched the bad config. The five percent that did saw a slow page, then a retry that worked on the old version.
What we changed afterwards
The canary did its job, so we left it alone. We changed what surrounds it.
Config files now go through the same canary as code. Before, a config-only change took a faster path that skipped the ten-minute hold. That path is gone.
Review checks one more thing. When a diff shrinks a timeout, the author has to paste the p99 latency of that call in the description. If the p99 is higher than the new value, the change doesn't merge.
The runbook has a new first line: if a canary rolls back, read the diff before you retry. People retry on instinct, and a second rollback teaches nobody anything.
The part that stays awkward
Five percent of traffic is a lot when the failure is a hard error, and not much when it's a slow leak. A bad timeout is loud. A memory leak that takes six hours is invisible to a ten-minute window, and no ratio rule will save you from it. We have a separate soak stage for that, and it catches less than I'd like.
Still, the lesson from Thursday is small and worth keeping. Two humans looked at a smaller number and nodded. A script with two rules looked at the same change and counted.