by _Codemonkeyism · 10y ago · 0 comments
When I read post mortems from companies posted or linked here (e.g. Google, Facebook, ...) it does not seem that outages result from code deployments.
From my experience of 10 years of CTO/VPE I've only seen some outages resulting from deployments (mostly because test data sets were too small and processing in production took much longer resulting in slow responses and then outage).
The majority of outages linked and experienced are either from growing load, introducing new technologies (databases, deployments but the outage was not from code and usually developers could not help) or rolling out configuration changes.
What would be your main reason for outages?
Deployments are the #1 cause of outages. We don't write up fancy postmortems for the vast majority of these outages, because it's things like "We forgot to ship the config files before pushing new code, guess we should automate that now" or "We automatically pushed the config files before code and the code wasn't backward-compatible, guess we should code review for that now." They're easy fixes, the downtime is almost always small, and it's relatively easy to fix in production.
The main cause of multi-day, turns-you-hair-grey outages are cascading failures that start with a deployment. My worst one was a migration that happened at the same time as a bad IOPS day on EBS where we also ran out of disk space because we weren't rotating logs properly. That took some 18 straight hours to clean up, which sucked.
If you ask my customers, AWS issues are the main cause of outages. But really, deployments are the thing that cause the most loss. It's just that most people never catch that downtime because it's an extra 5, 10, 20 minutes of slowness or a maintenance page during off-peak hours.
This is not towards you in any way, I always get angry when there is maintenance in off-peak hours, because usually that means day time in Europe.
Take your example of a load-based outage. In many applications there is a time-based peak (eg 11am-2pm daily for Facebook, or right before a concert sale opens for Ticketmaster) where load might cause an outage. In the worst case you might have a load-based outage per day. If you only deploy code once a week, then of course for you the majority of outages will be from load, and that's where you focus.
OTOH Facebook pushes their entire front-facing code base twice (three times?) a day. They also twiddle thousands of A/B bucket test switches that turn code on and off, every day. After years of stomping on load-based outages, now their biggest danger is deployment.
Are those things not deployments? Rolling out something is a synonym for deploying something in my book. Configuration and code are not such different concepts in practice.