Your capacity plan assumes linear scaling, but adding pods beyond 40 doesn't increase throughput.
AdvancedScenarioCapacity & Load Testing
Answer
Situation read → A shared bottleneck limits throughput: database, lock contention, a singleton component, or a third-party limit.
What I'd do →
- Identify the shared resource that saturates as pods increase: DB connections, CPU on the primary, Redis single-thread CPU, a global lock.
- Check for coordination costs: cache invalidation fan-out, leader election.
- Fix: connection pooling proxy, read replicas, sharding, removing global locks, async processing.
- Update the capacity model with the real limit.
Why → Horizontal scaling only works until a shared resource saturates (Amdahl's law in practice).
Interview tip → Mention Amdahl's law or the Universal Scalability Law.
More on Capacity & Load Testing
Marketing announces a campaign that will bring 5x normal traffic in three weeks. Prepare.IntermediateA 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.Advanced