Interview Prep/SRE & Reliability/Capacity, Load Testing & Chaos Engineering

How do you calculate how many instances you need?

IntermediateConceptCapacity, Load Testing & Chaos Engineering
Answer
peak forecast           = 4,000 RPS in 6 months
per-pod capacity at SLO = 250 RPS (from load test, at p99 < 300 ms)
target utilization      = 70% (headroom for spikes)
pods needed             = 4000 / (250 x 0.7) ≈ 23
survive 1 of 3 AZs down = 23 x 3/2 ≈ 35 pods

Measure per-pod capacity with a load test, not CPU guesses, and redo the test when the code changes significantly.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity, Load Testing & Chaos Engineering