With `constant-vus`, the test reports p99 of 400 ms, but production users see multi-second latency at the same RPS.
AdvancedTroubleshootingk6 Load Testing
Answer
Likely causes → Coordinated omission: in a closed model, each VU waits for its response before sending the next, so when the server slows down, k6 sends fewer requests and never measures the queueing real users experience.
Diagnose → Compare http_reqs rate during slow periods: it drops when latency rises.
Fix → Use an open model (constant-arrival-rate or ramping-arrival-rate) with enough maxVUs so the request rate is independent of response time.
Prevent → Make arrival-rate executors the default in the load-testing template for user-facing services.
More on k6 Load Testing
k6 prints `WARN[0030] Insufficient VUs, reached 100 active VUs and cannot initialize more executor=constant-arrival-rate scenario=steady`.AdvancedCI fails with `ERRO[0602] thresholds on metrics 'http_req_duration' have been crossed` and exit code 99.BeginnerEvery request fails with `dial tcp: lookup checkout on 10.96.0.10:53: no such host`.BeginnerMany requests fail with `request timeout` after exactly 60 seconds.IntermediateThe test starts fine, then errors switch to `dial tcp 10.96.41.12:8080: connect: connection refused`.IntermediateThe k6 load generator logs `socket: too many open files`.Intermediate