k6 prints `WARN[0030] Insufficient VUs, reached 100 active VUs and cannot initialize more executor=constant-arrival-rate scenario=steady`.
AdvancedTroubleshootingk6 Load Testing
Answer
Likely causes → With an arrival-rate executor, each in-flight request needs a VU. If the system slows down, more VUs are needed (Little's Law: rate x latency). When maxVUs is reached, k6 cannot start iterations on schedule and the target rate is not achieved, which hides how bad the slowdown is.
Diagnose → Check dropped_iterations in the summary, and compute required VUs: rate x p99 latency (s). At 200 RPS and 2 s latency that is 400 VUs.
Fix → Raise maxVUs (and preAllocatedVUs to avoid allocation cost mid-test), or treat the warning as the test result: the system cannot sustain the rate within acceptable latency.
Prevent → Add a threshold on dropped_iterations (for example 'dropped_iterations': ['count<1']) so the test fails visibly.
More on k6 Load Testing
CI 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`.IntermediateAt high rates, k6 errors with `dial tcp 10.0.3.15:443: connect: cannot assign requested address`.Advanced