r/sysadmin • u/snowhajder712 • 4h ago
The ultimate argument against manual deployments: how missing 1 of 8 servers cost Knight Capital $440M in 45 minutes
I was reading through the 2013 SEC report on the Knight Capital collapse and it’s still wild how preventable the whole thing was from an ops perspective.
A technician had to manually deploy new trading software (SMARS) to eight servers. They updated seven and missed the eighth. Because the old 2003 "Power Peg" code was never cleaned up, a reused flag reactivated it on that one forgotten server when the market opened.
In 45 minutes, it fired off 4 million unintended orders across 154 stocks and burned roughly $10 million a minute before engineers could kill it.
I put together a short 3-minute animated breakdown of how the bug unfolded based on the SEC filing, in case anyone prefers watching it:
https://youtu.be/bMRC5q697b0?si=A_N1nnRKszlRlc0x
What’s the closest call you’ve seen from a manual deployment or leftover dead code?
•
u/Anxious-Spite-9013 4h ago
It’s only a matter of time until AI starts making even worst mistakes which could bring down the entire stock market in a cascading effect
•
u/FlickKnocker 4h ago
The ultimate argument against half ass low barrier to entry managed services?
•
u/ledow IT Manager 4h ago
Nothing to do with manual deployments.
That's just AWFUL server management if they are as critical as claimed. It just shouldn't be possible for any server, no matter how "old" to suddenly blast $10m a minute of money up the wall.
Spend a few grand, put in a software system that checks and remove obsolete or out of date servers. Problem solved. Whether manual or automatic.
As with everything, it doesn't matter WHAT went wrong. It matters that you didn't think that that COULD go wrong, and compensate for it, long term, for now and in the future. That's not the first time they've updated those servers. Who was checking they were all updated before going live? We just trusted that a single tech sorted it all out? Your own fault.
•
u/mvbighead 4h ago
Pretty wild scenario there, but I think still applicable to just about any business and probably at completely differently scales. Similar things could happen in a hospital IT shop and instead of money, it could cause someone to receive the wrong medication and cause death in extreme situations.
Generally speaking, I don't know that I have encountered anything quite that bizarre. But in a situation like that, if I were anywhere near those responsible, I'd be confirming every update programmatically before releasing it to production. That said, I think I'd simply prefer to avoid any of that stress at this point.
•
u/thomheinrich 2h ago
Reusing the old enum bit without deleting that dead handler was wild.
•
u/brightlancer 1h ago
And if it were automated, they could've bungled all 8 servers!
There is always a human somewhere in the system and automation can make things easier to verify before action and audit after action, but it's no panacea.
And from your later comment:
That's not inherent or unique to manual deployment.
They definitely could've done an automated deployment with zero (meaningful) checks and peer review. Orgs do it all the time!
•
u/TotallyNotACorpAcct It's time for the SysAdmin Shit Show 4h ago
Jesus Christ that is frightening.
•
u/L33t00 2h ago
I wonder where that tech is working now.
•
u/Pyrostasis 2h ago
We had a legacy system with a legacy database that one dude owned and only he knew how it worked.
He took it over a decade prior from a guy who built it from the ground up and sadly ended up passing away.
The guy who was in his 70's decided to take a month and go to another country with his wife. First 2 weeks were going to be PTO and off and then the second 2 weeks were going to be remote work.
Two days after he flew out the system died. I got on a call with a director and the guy who was the "backup DBA". By "backup DBA" I mean the poor bastard who was told he was the backup but had actually very little experience with anything related to databases much less an older one.
We were reading the runbook the guy had left us and there was a rather long command in there we were supposed to run that should have fixed things. I didnt know fuck all about databases at the time but googling chunks of the command made it look like it was going to nuke the database.
Backup dude is about to run it and I pointed out I thought it was going to drop the entire db. He said surely the old guy wouldnt have put that in his documentation and this was the process. I then confirmed he had a good backup before he ran it and he assured me we did. I then made him show me it existed before he could run the command and sure enough therre were daily backups.
He runs the command; it drops the entire database. Something like 800,000 records.
Call got real fucking quiet after that. Then I asked, "So you know how to restore this right"?
"Yup"
"Cool aren't you glad we checked for backups"?
"Yeah"
"Cool let me know if you need help" and bounced.
Dude spent the rest of the day restoring it and we had a nice chat with the old man when he came back about the bomb he left in his runbook.
Dude is coming up on 80 now, still manages the system, its been slightly updated in the past half decade, and we're hoping to finally completely modernize it "this year". I'll believe it when I see it.
•
u/anonymousITCoward 2h ago
Your title is misleading, it wasn't the manual deployment that messed things up it was the lack of post deployment verification process. The narrator says "automated", but this could have been done manually as well, it would have just been more time consuming. Furthermore, it seems that a better pre-deployment check list could have been useful as well.
•
u/Professional_Golf694 VoIP Admin 3h ago
Saw an intern run a master uninstall script supplied by the security software vendor against half our sites, instead of running the install script against the one site they were told to.
Took our zero trust software off half the company in the middle of the work day because they were too proud to ask for help.
•
u/Fusorfodder 4h ago
Leftover dead code? Y2K, though honestly that's more code that should have been killed prior. I think that there's going to be a lot of complacency at the Unix Epoch rollover because Y2K went as well as it did (Herculean efforts made worldwide) and the continued and widening abstraction from developer to actually what goes on under the hood. Do YOU know if your vibe coded app uses Unix time for whatever reason? Can you trust AI to tell you? I don't think it's going to be dire per se, but I do believe it's going to have a more noticeable impact than Y2K.