Interview Prep/SRE & Reliability/Capacity & Load Testing

A soak test shows memory climbing steadily over 8 hours. What's next?

BeginnerScenarioCapacity & Load Testing
Answer

Situation read → Classic memory or resource leak; short load tests would never find it.

What I'd do →

  1. Confirm with container memory working set, not just RSS:
    container_memory_working_set_bytes{namespace="shop",container="checkout"}
    
  2. Check other resources too: open file descriptors, goroutines or threads, DB connections.
  3. Take heap profiles at the start and after a few hours and compare.
  4. Fix, then repeat the soak test as a release gate for that service.

Why → Leaks appear over time; soak tests catch them before they cause nightly OOM incidents.

Interview tip → Mention comparing two heap snapshots.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity & Load Testing