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 (5)

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