Stories
Knight Capital: one server out of eight
Knight installed new trading-router code by hand on its eight production servers ahead of a new NYSE programme. One server was missed.
The new release reused an old flag. On the server that was missed, that flag switched on code that had been retired years earlier. Over about 45 minutes it sent millions of unintended orders, and Knight lost more than $460 million.
The SEC found no written deployment procedures and no requirement for a second person to review the deployment. Knight paid a $12 million settlement.
What it teaches
- Deployments must be automated and verified, so every machine ends up in the same state.GitOps →
- Never reuse a flag name for something new, and delete dead code paths.Feature flags →
- Have a kill switch you can reach in seconds.
CrowdStrike: a content update without a canary
A content configuration update (Channel File 291) for the Falcon sensor on Windows went out to hosts broadly, not in stages.
The new content expected 21 input fields where the sensor supplied 20. A gap in the content validator let it through, and affected Windows machines crashed worldwide.
In its root-cause analysis, CrowdStrike committed to staged deployment for this kind of content, rolling out through successive rings, and to giving customers more control over when updates arrive.
What it teaches
- Configuration and content are code. Give them the same rollout discipline.Config is code →
- Rings and canaries exist to limit blast radius. The bigger the fleet, the more they matter.Ring deployment →
Netflix and Google open-source automated canary analysis
Netflix and Google released Kayenta, an open-source automated canary analysis service that grew out of Netflix's internal system and plugs into the Spinnaker delivery platform.
Rather than a person eyeballing dashboards, Kayenta compares the canary's metrics with a baseline statistically and produces a score that a pipeline can use to promote or roll back.
What it teaches
- Let metrics make the call, consistently, on every release.Progressive delivery →
- Compare the canary with a baseline running at the same time, not with yesterday's numbers.Canary →
Blue-green gets its name
Martin Fowler's short bliki entry "BlueGreenDeployment" described the idea that Dan North and Jez Humble had been using: two identical production environments, with the router switched from one to the other.
It made a simple point that has lasted: if the old environment is still running, rolling back is just switching the router back.
What it teaches
- Keep the previous version warm, and rollback becomes a switch rather than a deploy.Blue-Green →