From 9fd8f5afb86c718d4e2b37c6325da57f8db923e8 Mon Sep 17 00:00:00 2001 From: JP Swinski Date: Mon, 16 Oct 2023 13:27:43 +0000 Subject: [PATCH] add soft ulimits for number of files open in docker compose --- targets/slideruleearth-aws/docker-compose.yml | 3 +++ .../terraform/cluster/docker-compose-sliderule.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/targets/slideruleearth-aws/docker-compose.yml b/targets/slideruleearth-aws/docker-compose.yml index b32a4b729..ff854b91f 100644 --- a/targets/slideruleearth-aws/docker-compose.yml +++ b/targets/slideruleearth-aws/docker-compose.yml @@ -8,6 +8,9 @@ services: entrypoint: /usr/local/bin/sliderule /usr/local/etc/sliderule/server.lua /usr/local/etc/sliderule/config.json stdin_open: true # docker run -i tty: true # docker run -t + ulimits: + nofile: + soft: "8192" volumes: - /etc/ssl/certs:/etc/ssl/certs - /data:/data diff --git a/targets/slideruleearth-aws/terraform/cluster/docker-compose-sliderule.yml b/targets/slideruleearth-aws/terraform/cluster/docker-compose-sliderule.yml index 3fcf0dcd2..d65d7e197 100644 --- a/targets/slideruleearth-aws/terraform/cluster/docker-compose-sliderule.yml +++ b/targets/slideruleearth-aws/terraform/cluster/docker-compose-sliderule.yml @@ -8,6 +8,9 @@ services: entrypoint: /usr/local/bin/sliderule /usr/local/etc/sliderule/server.lua /usr/local/etc/sliderule/config.json stdin_open: true # docker run -i tty: true # docker run -t + ulimits: + nofile: + soft: "8192" volumes: - /etc/ssl/certs:/etc/ssl/certs - /data:/data