Canary Deployment Problems

Fix canary traffic routing, statistical validity, and monitoring gaps that make canaries unreliable.

Overview

Overview

Canary deployments cut deployment risk, but they need more care than most teams expect. A naive canary (5% of traffic to the new version, watch 10 minutes, promote) often fails silently: it passes, the full rollout proceeds, and the bug it was meant to catch hits 100% of traffic.

The failure follows a familiar path. The new version gets a canary with a small weight and a short observation window. It passes because it saw too few samples, the full rollout goes ahead, and the bug reaches 100% of traffic.

Key concepts

  • Statistical Significance in Canaries
  • Relative Error Rate Comparison
  • Sticky Session Routing
  • Header-Based Canary
  • Maximum Canary Duration

Interview questions

  • You run a canary at 5% traffic for 15 minutes and see no elevated error rates, so you promote to 100%. Immediately after full rollout, error rates spike to 2%. How could the canary have passed while the version was actually broken?
  • How do you implement a canary that is statistically meaningful for a service handling only 10 requests per minute?

Sign up free to read the full topic

More Troubleshooting topics

Start free on Cariara · Coding problems · System design studio