Your k6 test reports 0% errors but the service's own metrics show 3% 5xx during the test.
AdvancedScenarioCapacity & Load Testing
Answer
Situation read → The two are measuring different things: k6 may treat some statuses as success, retries may be hiding errors, or k6 traffic is not the only traffic.
What I'd do →
- Check k6
responseCallback: if set to accept 5xx,http_req_failedwill not count them. - Check if a gateway or service mesh retries failed requests between k6 and the service.
- Check whether other traffic (background jobs, other clients) is causing the 5xx.
- Tag k6 requests (
User-Agentor a header) and filter server metrics by it.
Why → Client-side and server-side numbers must reconcile before you trust either.
Interview tip → Mention mesh retries hiding errors; it is a real production surprise.
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