If you want failover to work well, use it often

(bencane.com)

422 points | by madflojo 18 hours ago ago

111 comments

  • mrweasel 2 hours ago

    A few years ago there was an interesting article about the Nordic bank Nordea. Apparently they hadn't tested failover to their backup datacenter for years (14 years). They were afraid it would fail and didn't want to deal with the fallout of a failed test, so they didn't test. At that point having a backup datacenter is purely an annoying cost that exists only as a regulatory checkbox.

    Still absolutely fascinating that some companies do not test their failover plans.

    https://www.version2.dk/artikel/laekket-rapport-nordea-kunne...

    • soco an hour ago

      I would have expected the regulatory list was also including a checkbox for "tested twice a year" or something? Unless they were lying on that, in which case they could have been lying about anything (including having any failover).

      • bennysaurus 18 minutes ago

        There's regular failover or site-swapping and then there's "DR testing".

        Many institutions are scared of regular failover or even doing a proper DR test often because they aren't 100% sure it'll work, and even if it does if they can fail back. The result is you get very isolated testing to say you're technically compliant without being confident you could in a real situation.

  • trollbridge 17 hours ago

    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.

    • rskeens 13 hours ago

      Prior workplace had DR Days every year and they were a thing to look forward to. When it was first implemented, nothing went to plan but after just a few years there was only minor anxiety each time.

      Nothing filled blindspots in staff documentation more than those findings.

      • eru 4 minutes ago

        You should have probably done them more often than once a year (perhaps once a month) in those early days?

      • hinkley 12 hours ago

        One of the things about cloud providers is you can do drills of trying to migrate the entire thing to a new region to test worst case disaster recovery. The tricky bit is making sure nothing touches the old region due to hard coding.

      • arcanemachiner 5 hours ago

        > DR

        Data recovery?

        EDIT: Wrong! It's "disaster recovery".

      • sandeepkd 13 hours ago

        The transitions I have seen so far -> actual DR exercise -> table top exercise -> DR lives in the doc presentation or strategy documents

        I miss it though. Somewhere down the line the expectation bar has gone down in a circular fashion

        • zenoprax 7 hours ago

          > DR lives in the doc presentation or strategy documents

          I imagine the answer to the question "Does the disaster recovery plan work?" is probably similar to "Do you backups work?".

          In flight training you rarely do "multiple unrelated failures" because you need tightly controlled scenarios for fair and efficient assessment. In ground school (or when you have extra time in the simulator) you can think about the systems and environment in more detail and be creative in solving bizarre, unrealistic problems. For experienced people doing the same thing every day this is a great opportunity for learning a couple times per year.

      • jamesfinlayson 10 hours ago

        I worked in a place that did a yearly disaster recovery check - it wasn't a very good check obviously as they actually needed it one day, and it took about a week to recover from the disaster.

        Meanwhile somewhere else, dedicated servers were used heavily but failover happened monthly at most, but regularly more often.

        • Black616Angel an hour ago

          A customer stopped a major patch of multiple systems with a notification two weeks prior, because it's "not enough time to set up emergency communication" at which point we wondered, what emergency let's your company set up communication over two weeks before anything bad happens...

    • hinkley 12 hours ago

      The problem there is that is opens the feedback loop for memory leaks. And that becomes a situation that hits around the holidays because you deploy less which means the application runs 2, 3x longer than it usually does, for three weeks out of seven.

      • xyzzy_plugh 12 hours ago

        I highly, highly recommend a forced rotation of a week max, such that all deploys/hosts roll over on a weekly basis. For large clusters I recommend that nodes continuously churn so that there is always a rotation in progress.

        I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability.

        • eru 2 minutes ago

          > I don't recommend this to paper over memory leaks -- you still need to fix those! But it results in tremendous stability.

          I'm not actually sure you really need to chase after slow leaks? It feels dirty, but honestly, restarting each part of the system randomly around once a day is good anyway. (Or once a week as you say.)

          If you can leak faster than that: sure, fix it. But if you slowly leak a few MiB per hour of running, you might just ignore it?

        • darkwater 2 hours ago

          > For large clusters I recommend that nodes continuously churn so that there is always a rotation in progress.

          And pay the AWS Config tax (if you use AWS). I mean, literally pay, as in it will cost you extra money if you use autoscaling a lot and have a poorly configured AWS Config setup.

        • Spivak 8 hours ago

          The key to making this feel less arbitrary is making stability is a secondary effect of something the business already wants—velocity. By having your CI pipeline be fast, meaning the time from approve to deployed should be sub 30 minutes, sub 15 ideally, you're running deploys continuously (during the workday at least) and your velocity and responsiveness to issues and bugs goes way up while ops gets stability and predictability.

        • rednb 12 hours ago

          Thanks for sharing this. This is something i'll definitely implement moving forward.

        • hinkley 11 hours ago

          That’s no panacea either. Some requests that can fail at runtime still need to succeed during bootstrapping and restarting during “low traffic periods” invites getting paged during low traffic periods.

          I did all but the last mile on autoscaling work. I thought we needed about three months more work, the guys who took it over decided it needed to be done in time for year end performance reviews. They skipped things and also ignored my advice on tuning parameters. Twelve days later we had the worst outage in two years because they didn’t account for unknown unknowns while I did. A bug in Operations’ Terraform did not preserve current machine count during a redeploy, and their initial min cluster size was laughably small.

          In my next 1:1 I told my boss it was worse than that because they held a vote to ignore my advice of ramping down instead of jumping to best case. My boss was as appalled as I had been. Fucking told you so.

          By the time they had dialed it in they had exactly the settings that I proposed which they thought weren’t aggressive enough. The fact that my numbers were not that compelling is why it had been my priority 3 instead of Priority 1 in the first place. It didn’t actually save us all that much more money than I already had with the work up to that point.

          Our reloadable config system needed Consul to be up and populated during bootstrapping. If it went down any time after that it would fall back gracefully to the last known configuration and exponentially back off. In situations like that, turning off a server for 20 minutes a day is an increase in risk with zero upside, since billing doesn’t even work that way!

          At the end of the day I think I probably didn’t make enough of a stink about how much and for how long I had been working on that problem and how it was foolish to reassign it at that point in the process. At a minimum it should have been all three of us with me cross training.

          Give a distributed computing problem to people with no formal training and they always ask how hard could this really be. Real hard, but also not if you commit to do some counterintuitive things religiously.

          • srean an hour ago

            Well on the bright side your boss understood the problem -- tired of broken AB tests that border on fraud :|

      • PhilipRoman 11 hours ago

        In some high reliability contexts you actually don't want an uptime higher in production than you've tested. This is not just due to leaks but various potential counter overflows, etc. If there is no significant degradation for the user, there is little reason to not reset the system periodically.

        But I wouldn't necessarily aggressively restart servers that rely on netboot or other quirky, non-self-healing tech (systemd service ordering, DHCP, various VPN and network drive implementations)

        • hinkley 11 hours ago

          Consul was the bottleneck on ours. And while a Raft protocol is not the worst external dependency, it’s difficult to spin up from 0 so it limits the parallelism available to spin an entire region up from zero under a time crunch.

    • jeffrallen 2 hours ago

      > fail over off a drive

      ...and test the entire chain, up to and including paging on-call.

      You do have alerts for fail over events, right?

    • j45 16 hours ago

      It's a good idea to just schedule and proactively replace hard drives too, especially depending on the grade of it.

      • bonoboTP 16 hours ago

        Good idea for infinite money, but if you don't have a huge storage cluster, modern disks don't fail all that much. Super rare for enterprise level ones. I've operated many dozens, I had like one or two fail over 5 years and those were already over 10 years old. I found SSDs more finicky.

        • hinkley 12 hours ago

          For a project we bought 10 laptops and hired people after. Seven of those hard drives failed in about five months. Bad batch. Statistical clustering is what you’re planning for in disaster recovery. What do we do when no single point of failure can take out the system but three happen at once?

          • bonoboTP 2 hours ago

            Yes, when buying disks for a big RAID, they should not come from the same batch. Good vendors take care of this.

            • j45 11 minutes ago

              Best to still buy the same drives from different vendors if possible.

              Laptop manufacturers should be mixing it up but they might find it more useful to have the failures clustered.

        • j45 12 minutes ago

          Most people don’t buy enterprise grade drives though.

          Western digital also lied about their CMR tech in their NAS grade drives.

          If one is using something like a synology, they are generally reliable and can run for 5-10y before anyone notices they’ve had it that long.

          Replacing drives at the 5-10 year range can happen naturally if the rain needs to be eventually grown as well. Having a spare drive on hand is something to factor into the original cost.

        • dapperdrake 14 hours ago

          What about cycling through? The additional drive can be your "hot spare" or "cold spare".

      • trollbridge 15 hours ago

        I have a fleet of server pulls which still are running 6-7 years later. In my experience once a drive gets past 50,000 hours, as long as you monitor SMART and temperatures it’ll last forever. (Proper airflow is essential.)

        I generally run RAID-1C3 plus a hot spare (periodically take it to C4, and then back to C3 to rotate what the hot spare is), with a cold spare on the shelf. With CephFS it’s a bit different but basically the same idea.

        • j45 10 minutes ago

          I have seen the same, also it’s about how much load is on the drives and if that type of load is a strain for it.

          Smart drive notifications is key

      • toast0 15 hours ago

        For home stuff, I try to replace hard drives on a schedule, but economics win. For work stuff, my experience was spinning drives offer pre-failure indication if you monitor smart; ssds fail less often, but I never got an indication before failure. Historically, most of my servers would be replaced before you really start to worry about storage lifetime, but hardware stays useful longer these days.

        There have been firmware issues across multiple manufacturers where a lifetime counter rolled over and made the drive inaccessible ... if you knew in advance, you could pull those out of service before they failed, but how would you know.

        For personal drives, I try to buy one at a time or at least bring them up a few weeks apart. For work drives, sometimes you just end up with a huge batch of servers coming online at the same time. Hopefully backups go to different systems.

      • throwaway270925 13 hours ago

        No, it really isnt! What a stupid thing to say!

        Use (soft)RAID, have hot spares, done.

        Lemon drives usually fail within the first weeks, good drives keep running for years long after their 5th birthday.

  • BWStearns 9 hours ago

    I think there's a broader point here, which is if you want _anything_ to work well, use it often. Bugs spawn easier in rarely exercised code. One of the things I'll often push at work is that if we _have to_ be good at handling some Rare Scary Thing[0] then we should, if practical, try to bring the scary part into more commonly exercised code, because it makes the Scary Thing happen more often and you'll get better at it faster. Otherwise you end up making the happy path work and just kind of hope you covered the rest of it[1].

    Failover is a great example because in many business cases you _have to_ be good at it when you have the very bad day, but there are ways to avoid it in steady state.

    [0] E.g.: Complex authz logic, deploys, interactions with a fragile remote service, etc. [1] Obviously you shouldn't just cover the happy path, but you and the people you work for probably like money and it will be hard to justify pre-bulletproofing some edge case than the median one.

    • vincent-uden an hour ago

      This is exactly why dog-fooding when possible is such a good product strategy. You will hit up against the rough edges of your solution if you use it yourself often.

  • lbriner 2 hours ago

    Also, there is testing a failover, and testing a failover.

    We tried it and fired some basic requests to a web app and it all appeared to work fine but a colleague noticed the monitoring system blipping for a minute or so when failing back again even though the apps seemed fine.

    I was too sloppy to worry since "it all looks OK" but eventually he managed to narrow it down to the firewall state not replicating back properly due to something in Proxmox ip tables. It wasn't just affecting the monitoring software but anything with an existing connection and that would have been really ugly to a customer. Now that it is fixed, we are completely confident failing over, which we use to patch the host servers roughly once per month.

  • romanhn 16 hours ago

    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.

    • mock-possum 15 hours ago

      Playing with compounding error/fail/degraded states is one of my favorite things to do during downtime - if I’m light on higher priority work, I’ll dig up a bunch of edge cases and write fixes for them, then turn it into a small writeup to share with the crew, so it doesn’t look like I don’t have enough ‘real’ work to do.

  • pizzafeelsright 17 hours ago

    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.

    • al_borland 14 hours ago

      For years, back when the datacenter was down the hall from the offices, if we were doing an application upgrade we’d first go out and pull one of the drives from the RAID. If everything went well with the upgrade, we’d push the drive back in and let it rebuild. If something went wrong with the upgrade, we’d power down, boot off the drive we pulled, and be back up and running with minimal downtime.

      Some nights I would pull dozens of drives. I guess we had a lot of trust in the RAID.

    • theokrueger 16 hours ago

      i trust my RAID but would flinch knowing my hotswap doesn't work :(

      • nomel 16 hours ago

        A certain type of hardware failure is indistinguishable from the drive being pulled out.

        • LoganDark 8 hours ago

          I had this hardware failure recently. An SSD grew some bad sectors that, when read, caused the drive to just disappear. Poof, gone. It took ddrescue + over 400 manual replugs to get the remaining data off the drive. With Claude making a script to automatically proceed after each replug, it only took about 3 hours, which I think was perfectly reasonable.

          The SSD had lasted 9 years, served me well. Rest in peace.

      • j45 16 hours ago

        A hotswap raid isn't a raid if you can't pull a drive without thinking. Of course, raid 5-10 is minimum and mandatory.

        • podocarp 9 hours ago

          Not entirely the case, for example NVMe doesnt really have a consensus on whether its hot swappable today, some work and some dont work unlike HDDs

          • j45 15 minutes ago

            I don’t think you’re saying we should use nothing until we know about NVMe’s definitively?

            RAIDs are about using what works as a baseline —- that is overwhelmingly HDDs.

    • esikich 13 hours ago

      I did this many years ago with a client who had bought a big server upgrade to demonstrate what they had just paid for. Server crashed immediately. Found that HP did not build the server to specs, there was no RAID set up. Luckily I had someone to blame.

  • nly an hour ago

    At one of my last employers we swapped our primary and secondary trading servers every Monday morning and each was rebuilt (fresh OS, redeploy) every month. This was all fully automated.

    There were also spare servers, connected to switches, just sitting idle that were rotated in and out of the rotation.

    When a single server being down can cost you tens of millions of $ a day you develop good recovery

    This is without all the fancy cloud infra that makes it so easy to be resilient today

  • wjholden 11 hours ago

    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."

  • torvald 17 hours ago

    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.

  • dangoodmanUT 16 hours ago

    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

    • hinkley 12 hours ago

      I always remember a time in college when I was proud of my cat-like reflexes. I was ice skating, and started to fall. My gyrations trying not to fall at all ended up with me flat on my back, with ice skates near my head and arms. If I had taken a knee it would have been over quicker and safer.

      I see people do the same thing at work all the time. You can hurt yourself trying not to hurt yourself. People try to make the happy path wider and deeper and let the corner cases get more expensive and use bad statistical thinking to justify it as an improvement. But the corner cases can come in clusters, and people train themselves to not see those clusters in the telemetry. But the customers see it, and the disconnect makes it worse.

  • socalgal2 4 hours ago

    Let me add, "make it easy" to use, maintain

    I know for a production service that's easier said that done, but even for home user. Maybe this isn't the same thing but for 10-15 years I backed up my photos. I backed them up to local NAS hard drive and backed them up to google long term storage via Arq. It was a PITA to set up. Arq wanted admin permission to Google Cloud, like most poorly designed software, so they could just "make it work". I wasn't about to give an app my admin credentials. So I went through the trouble of setting it up manually.

    Then, the machine doing the backup aged out and getting it working again on a new machine was always too much work. Eventually after like 5 years of not backing up I deleted the cloud thinking someday I should switch to an easier solution. Then the hard drive I had died. I now no longer have the photos.

    I feel pretty stupid. Stupid for losing them. Stupid for not fixing the backup. Stupid for wasting 15 years keeping them backed up at all just to then lose them.

  • Terr_ 2 hours ago

    I wonder if that's one pressure for animals for most creatures to have finite lifetimes. The reproductive cycle is the closest we get to "tear it down and start over".

  • hinkley 12 hours ago

    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.

  • plandis 16 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.

  • starcommander 16 hours ago
  • stroebs 13 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.

  • ww520 8 hours ago

    In one of my previous jobs, we scheduled recurrent tasks (monthly/quarterly/annually) and one of them was fire drill to check failover on hardware failure. Failovers of frontline servers like web servers, app servers, cache servers, authentication servers were bread and butter, which were usually stateless. Needed to make sure the temporary reduced capacities not causing a cascaded failure. Failovers of storage servers and databases needed more attention. Needed to ensure transactions were committed/rolled-back correctly and data were consistent.

  • vector_spaces 10 hours ago

    A daily life example of this with larger stakes involves GFCI/AFCI (RCD in Europe), and circuit breakers in general. You should regularly turn off all your circuit breakers to make sure they can indeed break the current, and you should regularly push the test button on your GFCI outlets/devices and GFCI/AFCI breakers to make sure they can actually trip. Shutoff/switching mechanisms can and do get stuck, and this can be very very bad in the case where you need it!

    • bombcar 9 hours ago

      Some GFCIs "self-test" internally, but it's worth making sure safety features actually work.

  • k3vinw 16 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.

  • connicpu 10 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.

  • sovrius 14 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 14 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 11 hours ago

      Hey it's in maintenance mode now and needs to open all the ports and disable the firewall to test a patch....

      • arend321 2 hours ago

        In my experience, the opposite is true. It actually takes a lot of tuning to stop the agent from bailing out prematurely on an easily solvable issue.

        Even if we entertain the disabled firewall scenario, my supervisor agent monitors Prometheus events and would have detected those open ports and intervened. The same goes for disk space, uptime, latency, or an open SMTP relay. Having that kind of feedback loop is a major pillar of this automation.

  • contron 10 hours 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.

  • rr808 12 hours ago

    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.

    • Choad_20261104 12 hours ago

      I have an urge to recompile/reinstall an operating system on an irregular but frequent basis if only to clear it of any accumulated frass.

      In a like mind, I try to be certain to spend a few days with mains power turned OFF to prove that backup battery is still able to failover and to sustain for a minimum duration. I log the KW hrs utilized and the battery SOC after each instance.

  • green-salt 13 hours ago

    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.

  • stackskipton 17 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.

    • rcxdude 39 minutes ago

      Often, occasional short downtime is acceptable, longer downtimes are not. I think for a lot of systems the complexity of hot zero-downtime failovers is not worth it (but it is still worth practicing the short ones).

    • mlhpdx 16 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 16 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 10 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 9 hours 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 8 hours 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 15 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 13 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 15 hours ago

      your politics of failover have failed! it's time to make them work again!

  • jiggawatts 15 hours ago

    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.”

    • hibikir 13 hours ago

      What you describe is often not enough, as in a real failover event, a smaller percentage of the hardware has to handle the entire load. There are entire classes of errors that only happen when you actually shut down entire azs, or even regions at a time, and leave them down for hours.

      • jiggawatts 12 hours ago

        In a typical setup, the devops pipelines would use rolling zone-by-zone outages to deploy new code, so that's also tested relatively frequently.

        I typically work on systems with negligible load, so this isn't an issue for us.

        In the past I did work at an organisation with a large user base where more than a hundred physical servers dedicated to a single app was normal. They had a data center with power issues that would experience frequent brownouts, which eventually forced every team to make their apps fail over automatically and robustly. This included having spare load capacity to handle double the normal load at the remaining DC.

        I always found it ironic that "frequent power issues" caused availability that was better than it was before the power issues started!

  • andrewguy9 13 hours ago

    This also applies to restoring from backup.

  • Blackarea 15 hours ago

    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

    • godisdad 15 hours ago

      You can acknowledge the risk or not acknowledge the risk.

      If you choose to acknowledge the risk you can price the risk or not price the risk.

      If you choose to price the risk you can fund the risk.

      If you fund the risk you are managing the risk.

      I know people who drive around without car insurance, other people who don’t have life insurance. There are also people who are over insured at the other end of the spectrum.

      It depends on what you’ve promised people giving you money and what you’re going for.

    • madflojo 7 hours ago

      There are certainly levels to reliability. Not everything needs canary or active-active-active deployments worldwide. It’s very easy to put together well-intentioned, overly complex solutions in the name of resiliency. It’s a balancing act finding the right level for what you’re building.

      But I will say, the bar for some reliability is pretty low. If your local grocery store's checkout system were down, that would be bad for both them and you. Now a smaller grocery store probably doesn’t need globally deployed active-active-active nodes. But they probably still need a way to recover quickly and reliably. How long can they really tolerate being down?

    • allthetime 15 hours ago

      You can just spin up a couple VPSs and put a load balancer in front and call it a day. No one is stopping you. This is what I generally do, unless something more complicated is truly necessary, and I'm very happy.

      • Blackarea 15 hours ago

        Yeah technically yes, but I'm talking about the standard that modern devops and sre are setting. Suddenly org policies are introduced that force using a company wide helm chart and that base image with that process yada-yada. Maybe there's still places with more autonomy to just spin up whatever, but I see alot of the opposite not just in my org.

        • allthetime 14 hours ago

          Fair. At a certain scale unfortunately some level of oppressive bureaucracy and structure is probably necessary.

          Of course management is often prone to over doing this, and managing engineers are prone to over building.

          This is more a general business & people problem that applies to all areas though

  • quisquous 17 hours ago
  • UltraSane 17 hours ago

    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.

    • j45 16 hours ago

      Some really good tips and ideas in these comments.

  • j45 16 hours ago

    One of the best examples I learned in a datacenter setup was to pull cables every so often. :)

  • awesome_dude 9 hours ago

    Is this a restatement of the chaos monkey - that is, in order to make sure the system is resilient, some organisations have something that deliberately breaks things

  • tonymet 17 hours ago

    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.

    • computerdork 16 hours ago

      You might have missed it further down this article, but this person suggests adding failover to your release process. During a release, you can switch the network traffic to the failover environment, then release updates to the original environment, test them there, then switch back to the original environment.

      Worked at company that did this. Didn't know why at the time, but seems like a really good idea.

      • tonymet 13 hours ago

        How did they mind the resources ? (Time , money )

        • computerdork 8 hours ago

          Hmm, good question. Wasn't apart of devops or specifically, release engineering (am a software dev), so am not sure. But my educated guess was that their prod environment was surprisingly small for a high-volume ecommerce website (they are one of major sites on which you can resell tickets to events). Think each prod environment didn't have that many servers, only 2 or 3 or something like that. I can't remember the exact number, but I remember being surprised that it was so low given the volume of traffic they had - although, me being on the dev side, you don't get a good feel for how much traffic is truly "high-volume" and how much compute you'd need.

          And one thing they did to mind money is they kept their engineering team small, ~500 people, and this was before AI. At that time, they should have had 50% more engineers, because most were being worked to the bone. It was a very stressful place to work (but learned more in that one job than all my other jobs combined).

    • solatic 17 hours ago

      > customer disruption

      Not an excuse. Run a parallel environment that isn’t customer-facing if you’re forced to so that you can drill. Either you’re going to disrupt your customers or an act of God will, and your customers won’t let you scapegoat God.

      • thakoppno 16 hours ago

        > a parallel environment

        In my experience, the issue with this is simulating production in a meaningful way. Let’s say you have 10k mobile users, how can traffic approximate that well enough with network conditions, p99 user behavior.

        It’s as good as possible but like parent points out, not necessarily worth it.

      • tonymet 13 hours ago

        How about the budget ?

        • ssl-3 an hour ago

          If the budget can't support functional failover, then functional failover cannot exist.

    • simonw 17 hours ago

      Good failover means zero customer disruption.

    • j45 16 hours ago

      Original devops is creating an environment that can be fully rebuilt and reprovisioned effortlessly. 1

      With software and solutions, until that exists, there is no failover. Whether it's how a cloud is used, or self-hosting on resources works, or a hybrid.

      Disaster planning and other risks are things accounting departments can usually get behind to test and test often. The cloud can seem alluring to pay instead but it doesn't always work out.

      • XorNot 14 hours ago

        Just because you can reprovision it doesn't mean you can reprovision it quickly enough.

        What works with say, 10,000 files might still work 10,000,000 but on no timeframe anyone can tolerate.