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