Marketing announces a campaign that will bring 5x normal traffic in three weeks. Prepare.
IntermediateScenarioCapacity & Load Testing
Answer
Situation read → A known, dated spike is the best kind of capacity problem: there is time to test and prepare.
What I'd do →
- Get details: expected peak RPS, which journeys, duration, start time.
- Load test at 5x (plus margin, say 7x) with k6 arrival-rate scenarios against production-like staging or production off-peak.
- Find bottlenecks: DB connections, third-party rate limits, autoscaler
maxReplicas, cloud quotas, node capacity. - Pre-scale: raise HPA minimums before the campaign, warm caches, request quota increases, pre-warm load balancers if needed.
- Prepare degradation: feature flags to disable expensive features, rate limits for bots.
- Plan on-call coverage and a war room for launch time; freeze risky changes for the day.
Why → Autoscaling alone will not handle a 5x step change; testing and pre-scaling will.
Interview tip → Mention quotas and third-party limits; they are the usual surprises.
More on Capacity & Load Testing
A 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?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