The k6 load generator logs `socket: too many open files`.
IntermediateTroubleshootingk6 Load Testing
Answer
Likely causes → The file descriptor limit on the load generator is too low for the number of concurrent connections.
Diagnose →
ulimit -n
cat /proc/$(pgrep k6)/limits | grep "open files"
Fix → Raise the limit: ulimit -n 250000 before running, or set LimitNOFILE in systemd or the container runtime. Reuse connections (k6 does keep-alive by default; avoid noConnectionReuse: true unless intended).
Prevent → Use a tuned load-generator image or the k6 Operator with known limits, and document OS tuning for large tests.
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`.IntermediateAt high rates, k6 errors with `dial tcp 10.0.3.15:443: connect: cannot assign requested address`.Advanced