Unofficial Hacker News companion — get notified on comment replies, and more.

If you want failover to work well, use it often (opens external site)

544 points by madflojo 2 days ago | bencane.com | 144 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (13)

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

    Replies (4)
    1. Good failover means zero customer disruption.
    2. > 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.

      Replies (2)
      1. > 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.

        Replies (1)
        1. Performance testing (and failover testing is a kind of performance test, since you are checking whether the system continues to work under a certain kind of load) is always about whether a particular shard holds to perf expectations, then extrapolating by multiplying out your number of shards and whether that will serve your expected amount of traffic.

          If you have a single server servicing 10k users, and it's not financially practical to generate 10k users worth of traffic, you first find a way to split it, say, 2 processes serving 5k users each. This halves your risk of a single process's failover not succeeding. It also allows you to test failover on a non-customer process that serves many fewer users (5k vs. 10k) and thus requires both less compute to serve and less compute to stress-test - so it's cheaper.

          You do need to appreciate that getting engineering rigor to work for you does typically require making changes to your systems - like thinking more intentionally about horizontal shard size.

      2. How about the budget ?
        Replies (1)
        1. If the budget can't support functional failover, then functional failover cannot exist.
    3. 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.

      Replies (1)
      1. How did they mind the resources ? (Time , money )
        Replies (1)
        1. 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).

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

      Replies (1)
      1. 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.

        Replies (1)
        1. High availability can include mirrors that are running in parallel.

          Remember, this is for the majority that aren't running massive setups, and the folks with massive setups usually have some budget to do this too.