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.

All SRE & Reliability questions Roadmap: SRE & incident response

More on k6 Load Testing