Every software deployment is a small bet that the new version behaves the way the old one did, plus whatever you meant to change. Most of the time that bet pays off quietly and nobody notices. Occasionally it doesn’t, and when it doesn’t, the blast radius is usually set by one design decision made long before anyone hit ‘deploy’: does the system let a bad version reach everything at once, or does it have to prove itself first?
Two incidents, twelve years apart, show what happens when the answer is the wrong one.
Knight Capital: when “deployed” doesn’t mean “deployed everywhere”
In the summer of 2012, Knight Capital Group handled roughly ten percent of all trading in listed U.S. equities. Ahead of a new NYSE program that launched on August 1, Knight rolled new code onto the eight servers of its order router over several days. One technician didn’t copy the new code to the eighth server. Nobody checked. The SEC later found that Knight had no written procedure requiring a second person to review the deployment.
The new code reused a flag that had once switched on an old feature called Power Peg, which Knight had stopped using in 2003. On seven servers, the flag now meant something new. On the eighth, it woke Power Peg back up. And because Knight’s system spread incoming orders across all eight servers on the assumption that they were running identical logic, the one inconsistent server blended runaway orders into normal trading from the moment the market opened.
In 45 minutes, Knight’s system racked up 4 million executions in 154 stocks while trying to fill 212 customer orders. By the time it was stopped, Knight held about $3.5 billion in long positions and $3.15 billion in short positions that it never meant to take. The SEC put the loss at more than $460 million. Knight needed $400 million in emergency investment within the week to stay alive, and it was merged into a competitor less than a year later.
The SEC’s conclusion is a sentence I’d put on the wall of every platform team: “a written procedure requiring a simple double-check of the deployment of the RLP code could have identified that a server had been missed and averted the events of August 1.”
The failure wasn’t really the dormant code. It was that “deployed” and “deployed everywhere, identically, verified” were treated as the same thing, which, of course, they aren’t. Notice, too, that Knight did roll out gradually, over several days. A staged rollout didn’t save them, because nothing verified what the rollout had actually produced.
CrowdStrike: when everything gets the update at once
On July 19, 2024, at 04:09 UTC, CrowdStrike pushed a routine content configuration update to its Falcon sensor. The new template defined 21 input fields. The sensor code supplied only 20. The mismatch caused an out-of-bounds memory read, and Windows machines crashed on contact. CrowdStrike reverted the file 78 minutes later.
Seventy-eight minutes was plenty. The update had gone out broadly rather than in stages, and Microsoft estimated that 8.5 million Windows devices went down. Parametrix estimated $5.4 billion in direct losses for the Fortune 500 alone: about $1.9 billion in healthcare, $1.15 billion in banking, and roughly $860 million across airlines. Delta itself put its hit at about $550 million.
And the fix couldn’t travel the way the bug did. Microsoft shipped a recovery tool the next day, but a great many machines still needed someone to reboot them by hand into safe mode. A change that reached everything in minutes took days of hands-on work to undo.
CrowdStrike’s own root-cause analysis put it in one line: “Each Template Instance should be deployed in a staged rollout.”
Different company, different failure mode, same root problem Knight had twelve years earlier: a change reached production before anything had a chance to prove it was safe, and there was no boundary in the system to stop it from reaching everything.
This isn’t an argument for shipping less
It would be easy to read those two stories as a case for moving slowly. The data says the opposite.
In DORA’s 2024 Accelerate State of DevOps report, elite performers deploy on demand, multiple times a day, with a change failure rate around 5% and recovery from a failed deployment in under an hour. Compared with low performers, they deploy 182 times more often and have an 8 times lower change failure rate. As DORA puts it, its research “has repeatedly demonstrated that speed and stability are not tradeoffs.”
The teams shipping the most often are also the teams breaking things the least. What separates them isn’t caution. It’s that their systems don’t give a bad version the chance to reach everything before it has been checked.
My colleague Alex Peay wrote in September about one side of this problem: what happens when AI produces changes faster than people can review them. He argued that you can’t review your way out of it, and I agree. This is the other side. Some bad change will get past review eventually. The question is how far it can travel before anyone notices, and that’s decided by the system, not by the reviewer.
What we built
ContextOS’s deploy model is built around exactly that boundary.
A manager instance is a live, interactive environment you can log into and modify directly: install dependencies, change configuration, iterate, while connected to real services the whole time. When you’re done, shutting it down captures the modified state as a new staged image.
Promoting a staged image doesn’t mean flipping a switch on every instance at once. The image sits in review first. You inspect it, test it, and compare it against what’s running now, and only once you promote it do new instances build from it and come online. The previous version keeps serving traffic until the new instances are healthy, then drains gracefully, finishing in-flight work instead of dropping it.
That’s also why a deploy shouldn’t need a maintenance window at all. If the old version keeps serving until the new one has proven it’s healthy, there is no moment when the service has to go dark for the change to happen. Alex also wrote recently about what a platform team’s week looks like once the platform absorbs the maintenance work. The deploy window is one of the first things that should go.
There’s no equivalent of Knight’s eighth server, because every instance is built from the same versioned image, not patched in place one machine at a time. There’s no equivalent of CrowdStrike’s simultaneous rollout, because old instances aren’t replaced until new ones built from that image are actually up and healthy.
Rolling back is the same mechanism in reverse: select a previous image and promote it. For managed services carrying real data, continuous incremental backups let you restore the data independently of the application rollback, so a bad schema change doesn’t get tangled up with reverting the code that shipped alongside it. And because deployment and autoscaling are independent, a new version can roll out while the system is scaling up or down, with no coordination required from anyone.
None of this makes bugs impossible. It means a bad version has to prove itself healthy on new instances before it replaces anything. That’s a very different blast radius from an out-of-bounds read on 8.5 million machines, or a dormant code path quietly trading against the market for 45 minutes.
Where this is going
This is the third and final part of a short series on how we think about infrastructure at ContextOS. Part 1 was about why we treat the control plane itself as a first-class resiliency problem. Part 2 was about why cloud and on-prem shouldn’t be two different platforms.
If your deployment process still depends on a change reaching everyone before you find out whether it was safe, I’d like to show you what the alternative looks like.
Tom Hatch is the co-founder and CEO of ContextOS and the creator of Salt and the Salt Project. He has spent more than twenty years building datacenter infrastructure.
Sources
- U.S. SEC, In the Matter of Knight Capital Americas LLC, Release No. 34-70694 (October 16, 2013)
- Knight Capital Group, Form 8-K on the $400 million investment (August 6, 2012)
- KCG Holdings, completion of the Knight/GETCO merger (July 1, 2013)
- CrowdStrike, “Technical Details: Falcon Content Update for Windows Hosts” (04:09 and 05:27 UTC): https://www.crowdstrike.com/en-us/blog/falcon-update-for-windows-hosts-technical-details/
- CrowdStrike, External Technical Root Cause Analysis, Channel File 291 (August 6, 2024)
- Microsoft, “Helping our customers through the CrowdStrike outage” (July 20, 2024)
- Parametrix, CrowdStrike outage loss estimate (July 24, 2024)
- Delta Air Lines, Q3 2024 earnings release (October 10, 2024): about $550 million impact
- Microsoft, KB5042429 recovery tool
- DORA, 2024 Accelerate State of DevOps Report, and dora.dev, “DORA’s software delivery metrics: the four keys”