Raise file descriptor limit on startup
feat(cli): raise file descriptor limit on startup (#10162)
Raise file descriptor limit on startupfeatraise file descriptor limit startup cli
Committed by bnoordhuis
commit message
feat(cli): raise file descriptor limit on startup (#10162)
Raise the soft limit to the hard limit when possible. This is similar
to what Node.js does to avoid running into "out of file descriptors"
errors too quickly.
On most Linux systems, raises the limit from 1,024 to 1,048,576.
On most macOS systems, raises the limit from 256 to 10,240.
Fixes #10148.Editor assessment
This is an exemplar. The subject states the change exactly - raise file descriptor limit on startup - and the body teaches: the soft limit is raised to the hard limit where possible, mirroring Node.js to avoid out-of-file-descriptors failures, with concrete before-and-after numbers for Linux and macOS. Motivation, mechanism, and measured effect are all present, the cli scope and feat type are accurate, and the issue is linked. Almost nothing to fault. It is difficult to imagine a more complete small feature message: motivation, numbers, and precedent are all present and verifiable.