Unofficial Hacker News client - receive Push Notifications on replies.

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

539 points by madflojo 1 day ago | bencane.com | 142 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

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