Skip to content

Commit

Permalink
Cap number of open files to 1024 in each container
Browse files Browse the repository at this point in the history
This avoids problems with libkqueue allocating many gigabytes of data based on
the maximum number of open files, which can default to > 1B in containerd.

mheily/libkqueue#153
containerd/containerd#7566
  • Loading branch information
ckreibich committed Jun 26, 2024
1 parent 216efb9 commit ec654ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Docker/setups/default/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ x-zeek-agent: &ZEEK_AGENT
command: /usr/local/zeek/bin/zeek -j site/testing/agent.zeek
ports:
- "9999"
ulimits:
nofile: 1024

x-zeek-controller: &ZEEK_CONTROLLER
command: /usr/local/zeek/bin/zeek -j site/testing/controller.zeek
ports:
- "2149"
- "2150"
ulimits:
nofile: 1024

services:
controller:
Expand Down
2 changes: 2 additions & 0 deletions Docker/setups/singlehost/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ version: "3"
# docker-compose requires the x- prefix for unrelated YAML nodes
x-zeek-template: &ZEEK_BASE
image: zeektest:latest
ulimits:
nofile: 1024

x-zeek-controller: &ZEEK_CONTROLLER
command: /usr/local/zeek/bin/zeek -j "site/testing/${ZEEK_ENTRYPOINT:-controller-and-agent.zeek}"
Expand Down

0 comments on commit ec654ff

Please sign in to comment.