Should you load test in production?
AdvancedConceptCapacity, Load Testing & Chaos Engineering
Answer
Staging rarely matches production in data size, traffic mix, cache warmth or infrastructure, so production tests find real limits. If you do it:
- Run during low traffic, ramp gradually, and watch SLO burn live.
- Tag synthetic traffic (header like
X-Load-Test: true) so it is excluded from SLIs and analytics and can be blocked instantly. - Use test accounts and avoid side effects (no real payments, emails).
- Define abort criteria (k6
abortOnFailthresholds, or a burn-rate alert stops the test). - Announce it to on-call and dependent teams.
More on Capacity, Load Testing & Chaos Engineering
What is capacity planning in SRE?BeginnerWhat is N+1 and N+2 redundancy for capacity?BeginnerHow do you calculate how many instances you need?IntermediateWhat is the difference between load, stress, spike, soak and breakpoint testing?BeginnerWhat is k6 and why do SRE teams use it?BeginnerWrite a minimal k6 test with SLO thresholds.Intermediate