Load Testing
Baseline / ramp / soak / spike / stress test methodology, tools (k6, Locust, JMeter), and production traffic replay.
Overview
Why load testing exists
Load testing is how you validate that capacity planning is real, not aspirational. Without it, capacity numbers are guesses.
There are five test types, and each one answers a different question. You usually run them in order: a baseline at normal load, a ramp to find the knee, a soak to find slow leaks, a spike to test autoscaling and a stress test to find the failure mode.
> [!IMPORTANT] The baseline is the reference. Every other test is compared against it.
Key concepts
- Baseline / ramp / soak / spike / stress
- k6
- Knee of the curve
- Soak test bugs
- Production traffic replay
- Stress test goal
Interview questions
- Walk me through the load test types and what each finds.
- How do you set up production-realistic load tests?
- I ran a stress test and the service crashed. Is that a failure?
Sign up free to read the full topic
More SRE topics
Start free on Cariara · Coding problems · System design studio