Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sanity-check open-fd limits at startup and cap if needed.
This triggers a reporter warning when Zeek adjusts the limit, in the absence of any ZEEK_NOFILE_MAX configuration. (With ZEEK_NOFILE_MAX, it's clear the user is aware of the tuning mechanism and the warning seems unnecessary.) This adjustment will happen by default in Docker environments until libkqueue gets fixed or containerd changes its default-uncapped fd limit behavior, and prevents libkqueue from needlessly allocating gigabytes of memory. mheily/libkqueue#153 moby/moby#38814
- Loading branch information