I like the idea of injecting failover into the release process. Another similar approach is chaos engineering, where you intentionally introduce failures to validate your systems' reliability.
When I was at PagerDuty we regularly ran Failure Fridays (perhaps they still do). The goal was to identify a victim sub-system and start applying all sorts of failures to it - excessive latencies, dropped server connections, availability zone outages, etc. It was all done in a controlled manner, with the operations team sitting together with the service owners. The idea was that even if there is an impact to the customer, it's much better to catch it now and fix the underlying issue with many eyes on it, rather than a bleary-eyed on-call dealing with it in the middle of the night. This sort of exercise was very scary to get started with, and only minimally-impacting failures were introduced, but over time we got to the point where we were comfortable with simulating a full region outage.
That said, such investments in reliability made sense for PagerDuty. If a company can survive just fine with 2-3 nines of availability, it's a lot harder to make the business case for it.
This is really good advice and I think everyone in the industry is learning this the hard way right now because of the recent avalanche of AI-discovered CVEs.
I have an opinion that uptime is largely a vanity metric. It might feel nice to have a year of uptime on a router or server, but not if it has been a year since said device got updated.
It is a bad sign if management will not approve maintenance because they cannot accept downtime. The loss of any single device should, ideally, not create any outage. If it does, then this indicates a flawed system architecture. I like to frame it as, "this thing is so important that we can't maintain it."
One of my favorite was "Do you trust your RAID?'
Confident "yes"
And then I would put my finger on the tab to pull a drive.
If they didn't flinch I would pull the drive out.
I have a few saying that i often repeat at work, and one of them is; if you are afraid of doing it, you are not doing it often enough.
This is the philosophy behind FoundationDB.
There aren't "normal" and "recovery" reconfigurations, there's just recovery (with a few exceptions for planned maintenance).
This means: 1) simpler code, 2) you're constantly testing the recovery path, and 3) the recovery path is designed to be quick because it's constantly happening
I will say though that the first thing you need to know is not Practice Makes Perfect but rather Recency Bias. Eventually a process that works 98% of the time will convince you that it works 100% of the time and the safeties will come off. Human error will grow and grow until there is a reminder that you need to respect the process.
And to make any process popular, you also have to make it far more robust than you would have thought, because people judge on incidents per unit time not incidents per 1000 instances. Anything you want used 2x as much needs to aim for 4x stability. You will underestimate use and overestimate your improvements so you need a safety margin to reduce overall incidents per month.
If it hurts, do it more often. https://martinfowler.com/bliki/FrequencyReducesDifficulty.ht...
This goes for all resiliency measures. If you’re not practicing and testing your systems under duress you have no clue if they will work as expected when they are actually needed.
The title alone - words to live by. At $enterprise we failover to a different DC once a week. The process to do so is ever-evolving and improving.
A few years ago it took 8 hours and 10-15 engineers to release software (Oracle DB-backed, running migrations + deployments done on inactive nodes first). That’s down to 1-2 minutes and a single engineer now, and pushing for on-demand releases. Not too bad for a company founded in the nineties.
I worked with a tech lead that basically applied blue-green to regional deployment so we were constantly flipping between the two. The stack was small, so I’ve always thought that was brilliant, but completely overkill until I started working on a project that could actually benefit from that approach.
Reboot your servers every week. I still remember the panic about having to reboot a critical on prem host that had been up for 5 years.
I've gone a bit wild and let an AI agent handle everything. It's a continuous 24/7 maintenance agent updating app dependencies, rebuilding docker containers, creating and testing backups, trigger cluster switchovers, update servers. It's not uncommon for a switchover to happen every 24 hours.
You never know if your disaster recovery scenario will play out without an actual disaster drill, up to the point of physical disconnection of uplinks.
This also applies to restoring from backup.
Companies rarely test this because they have no desire to test this. There is no management push to get it done and massive downside in testing causes outages which impacts engineering teams.
Coupled with most companies rarely need uptime they claim they need. Most companies I've worked at, downtime rarely resulted in lost revenue.
This stuff is good when there really is a business case for it. But too often it can just be a nerd snipe rabbit hole to build the equivalent of a tank's robustness for some web app with 10 users or some infra where a day of outage would not cause much trouble.
There is such a thing as overkill and using a sledgehammer to crack a nut. It's like when everyone wanted to introduce Kubernetes because Google uses it. Chaos monkey etc are great ideas but diving super deep into this with a prepper's paranoia for all kinds of dreamed up contingencies can be a form of procrastination, unless a business case can be clearly articulated.
Exactly. The only way to know your failover works is to make it the primary path. I apply the same to software: my tools don't have an 'offline mode' — they are offline mode. The network is treated as an optional enhancement (e.g., 'save this file' button writes the HTML to disk), not a dependency. When the internet drops, the user doesn't even notice because nothing changed.
The public clouds got it right: active-active is the only load balancing mode that should exist.
All of my deployments are zone redundant and all sites are always serving live traffic. Databases write in only one zone but read-only workloads are steered to the replicas at the other zones.
This leads to hilarious audit workshop conversions.
“How often is the secondary site tested?”
“All the time.”
“What does that mean? Monthly?”
“Continuously.”
“Daily?”
“No, it’s tested all the time, moment to moment, request by request. All day, every day.
“Ooookaay… I’ll put down ‘daily’ on the form.”
I only trust HA fail over to actually work if companies have been doing frequent switch and stay for years. Switching every 6 months is the minimum IMHO but the more frequently the better.
Frustrated dev speaking: I'm so tired of this whole sre madness. Canary, failover, firedrills, argol whatever that is, 50million stale dev environments with microservice ai generated state that is completely fake and inconsistent in every single one. Devs wanna just ship a feature to sync some data twice a year but the whole overcomplexity engine that is modern deployments has gone so far that you need to study a million tools before you can do anything meaningful. What happened to just a bash script and some well designed code. For everyone but maybe 5 companies globally we don't need all that shenanigans. But you have to grind your resume driven development and only the most overcomplicated nonsense makes you look serious. This industry is a joke and i can't wait for it to all fall apart
One of the best examples I learned in a datacenter setup was to pull cables every so often. :)
[dead]
[dead]
[dead]
[dead]
[dead]
these are easier said than done, because using failover means potential (and likely ) customer disruption.
The Devil is in the details, and because many tech solutions are a hodgepodge of open source, commercial and home grown components, the failover strategy also needs investment.
Convincing me to do more failover drills is not the hurdle needing overcome. Unlocking the budget to develop and exercise the protocols is the hard part.
A thousand times, yes. I now do rolling reboots in my clusters, partly because I needed to get a lot better about keeping them patched.
Once you trust your HA, you just take the server or service offline, do what you need to do, and then turn it back on. And you have a backup plan of “it’s trivial to just spin up a new server because we made sure to test that regularly, too”.
Occasionally we do “pull the power cord” (or more realistically tell the ups/peu to turn it off), and then testing that AMT/iLO/iDRAC/whatever functions to turn it back on. If you have things set up properly this can all happen with almost no effort via an agent harness.
The same is true if you’re relying on clustered storage or RAID at all. You’d better periodically just fail over off a drive (and should do this rolling) instead of waiting for a drive to fail.