CI fails with `ERRO[0602] thresholds on metrics 'http_req_duration' have been crossed` and exit code 99.
BeginnerTroubleshootingk6 Load Testing
Answer
Likely causes → The release candidate is slower than the latency threshold, or the test environment was degraded (noisy neighbour, cold caches, undersized staging), or the load generator itself was saturated.
Diagnose → Read the end-of-test summary (p(95), p(99), http_req_waiting vs http_req_connecting), compare with the previous successful run, and check server-side latency and CPU throttling during the test window.
Fix → If server-side latency regressed, block the release and profile the change. If the environment was at fault, fix it and re-run, rather than loosening the threshold.
Prevent → Trend k6 results per build (JSON output or Prometheus remote write) and keep test environments sized consistently.
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`.AdvancedEvery 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`.IntermediateAt high rates, k6 errors with `dial tcp 10.0.3.15:443: connect: cannot assign requested address`.Advanced