You're asked how many pods are needed for Black Friday. Walk through the calculation.
IntermediateScenarioCapacity & Load Testing
Answer
Situation read → Use measured per-pod capacity, forecast peak, headroom and failure tolerance.
What I'd do →
- Forecast peak: last year's peak x growth (for example 3,000 RPS x 1.4 = 4,200 RPS).
- Measure per-pod capacity at SLO latency with k6 (say 200 RPS at p99 < 300 ms).
- Apply target utilization of 70%:
4200 / (200 x 0.7) = 30pods. - Survive losing one of three AZs:
30 x 1.5 = 45pods. - Check nodes, IPs, DB connections (
45 pods x pool size), and dependency capacity. - Pre-scale before the event.
Why → Capacity numbers must come from measurement plus explicit headroom for failure.
Interview tip → Always include the AZ-loss multiplier and the DB connection check.
More on Capacity & Load Testing
Marketing announces a campaign that will bring 5x normal traffic in three weeks. Prepare.IntermediateA load test shows p99 latency jumps from 120 ms to 2 s at 800 RPS, while CPU is only 45%.IntermediateYour HPA scales out during spikes, but users still see errors for the first 2 minutes.AdvancedA soak test shows memory climbing steadily over 8 hours. What's next?BeginnerThe load test passed in staging, but production fell over at half that load.AdvancedYou need to add load testing to CI for every release without making the pipeline slow.Intermediate