Top
Best
New

Posted by madflojo 9 hours ago

If you want failover to work well, use it often(bencane.com)
307 points | 82 commentspage 2
stroebs 5 hours ago|
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.

connicpu 2 hours ago||
We run 5 redundant clusters and keep traffic to one of them weighted as if 2 of the clusters have fallen over to make sure our software will be able to handle the load when clusters inevitably have hardware failure. Then of course we actually test a cluster being down every time one is rebooted for kernel updates.
contron 1 hour ago||
Same as any skill or muscle. Use it or lose it. It goes for our brain, our body, our tools, and the entire system of software we use. If it isn't used, consolidate or delete.
starcommander 8 hours ago||
If it hurts, do it more often. https://martinfowler.com/bliki/FrequencyReducesDifficulty.ht...
plandis 7 hours ago||
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.
k3vinw 8 hours ago||
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.
sovrius 5 hours ago||
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.
arend321 6 hours ago||
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.
datadrivenangel 3 hours ago|
Hey it's in maintenance mode now and needs to open all the ports and disable the firewall to test a patch....
stackskipton 9 hours ago||
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.

mlhpdx 8 hours ago|
Perhaps oddly, almost every company I’ve worked at suffered real financial pain as a result of outages. Lost production at one that did quick-turn manufacture to order, and two more with customers that (rightly) demanded steep SLA penalties. None of them got to a point where failover was comfortable.

With my own company I started doing zero downtime deployments (I run hot/hot over multiple AWS regions) literally from day one. Our rate of rollouts has been slower this year than last, with only about 1,500 so far.

Constant failover is a big win in my experience. Hard to retrofit, though.

bonoboTP 7 hours ago|
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.

ianburrell 2 hours ago||
The problem is that reliability can be hard to add later when you need it. Single machines can lead to bad practices like not documenting changes or not backing up databases that lead to longer downtimes. Also, people talk about building SaaS and there is obligation to keep working for paying customers or they will leave.

Kubernetes makes reliability easy and leads to better practices. It used to be reliability was hard, but using the cloud turns day of outage into something unnoticed.

bombcar 1 hour ago||
The step from 1 to 2 is the big one; if your app is designed to work on a single machine it'll have a lot of assumptions that will make it hard to make it run on two; but if you start from two at the beginning you'll be able to add more pretty easily - but you often get stuck on the database somehow.
bonoboTP 47 seconds ago||
Yes, maybe it will be hard, but how hard? One or two days of intense work? Or months and months? It matters. If it's hard but doable, maybe it's fine to take on that tech debt initially in the name of developing the actual app and it's features instead of getting stuck on making sure everything is future proof when you don't know what the future actually looks like.
intrasight 7 hours ago|||
I don't think that, with modern stacks, that adding chaos monkey is that big a change - considering the benefits you get from knowing that you in fact have resiliency
bonoboTP 4 hours ago||
I'm not arguing against any one thing. I'm just noticing in the comments that people are piling on that you should also do X Y and Z any of which may be sensible but at some point you need more people to maintain such a tower because you can quickly end up with a situation where maintaining all the checks, alerts, scheduled rehearsal tasks etc give you more overhead and more overhead and more of a tangled mess that nobody understands than before. Like you will have some alerts, but nobody knows if they truly are serious and there will be alert fatigue. There will be tools checking on other layers of tools and this whole infrastructure can become harder to maintain than dealing with downtime, and is harder to keep track of than simply deciding to accept a risk and having a rough plan. Again, case by case! Depends on your team size, budget, priorities, customer tolerance, etc etc. All I'm saying, there are tradeoffs! More of this stuff is not always better.

And I think it can be procrastination like when people optimize their lifting regime to the death and buy all the gear but don't end up going to the gym much. When you don't know what to implement, adding more alerting, more testing, more automation layers can be a convenient infinite time sink. You can always add more of this. More monitoring monitoring the monitoring.

Bonus: I do know about and use AI agentic engineering for these things. Still there is a limit. The limit is higher than before, but not infinite.

The_Blade 7 hours ago||
your politics of failover have failed! it's time to make them work again!
More comments...