How would you design a spike test?
Answer
Start from a known steady workload, increase arrivals sharply to the risk level you want to simulate, hold long enough to observe the system, then reduce load and measure recovery. Define success for both the burst and the return to steady state: latency, errors, queue depth, rejected work, autoscaling or throttling behavior, data correctness and whether resources recover without manual intervention.
Strong answer includes
- models a sudden transition rather than a slow stress ramp
- defines expected overload behavior and recovery
- checks correctness and queues as well as latency
Practical example
A ticket sale opens at 10:00. Run five minutes at normal traffic, jump rapidly to the expected opening burst, then return to normal traffic and verify the service drains queues and returns to its original latency and resource levels.