The load test passed in staging, but production fell over at half that load.
AdvancedScenarioCapacity & Load Testing
Answer
Situation read → Staging was not representative: data size, cache warmth, traffic mix, dependencies or infrastructure differ.
What I'd do →
- Compare: DB size and indexes, instance types, replica counts, cache hit rate, third-party sandbox vs real.
- Compare traffic mix: staging tested one endpoint; production hits expensive search queries.
- Use production traffic patterns for the test (replay access logs or weight scenarios by real distribution).
- Run controlled tests in production off-peak with tagging and abort criteria.
Why → Load tests are only as good as their realism.
Interview tip → Talk about traffic mix and data volume, not just RPS.
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%.IntermediateYou're asked how many pods are needed for Black Friday. Walk through the calculation.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?BeginnerYou need to add load testing to CI for every release without making the pipeline slow.Intermediate