From 73018eed5cd93c9db7467760f5f1484fa2750554 Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Mon, 3 Feb 2020 14:39:20 -0500 Subject: [PATCH] In our systemd service files, set a reasonable default for the open file limit (65536). refs #16089 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- cmd/arvados-server/arvados-controller.service | 2 ++ cmd/arvados-server/arvados-dispatch-cloud.service | 2 ++ services/crunch-dispatch-slurm/crunch-dispatch-slurm.service | 2 ++ services/health/arvados-health.service | 2 ++ services/keep-balance/keep-balance.service | 2 ++ services/keep-web/keep-web.service | 2 ++ services/keepproxy/keepproxy.service | 2 ++ services/keepstore/keepstore.service | 2 ++ services/ws/arvados-ws.service | 2 ++ 9 files changed, 18 insertions(+) diff --git a/cmd/arvados-server/arvados-controller.service b/cmd/arvados-server/arvados-controller.service index e85707473f..1a43d7cd3a 100644 --- a/cmd/arvados-server/arvados-controller.service +++ b/cmd/arvados-server/arvados-controller.service @@ -18,6 +18,8 @@ StartLimitIntervalSec=0 Type=notify EnvironmentFile=-/etc/arvados/environment ExecStart=/usr/bin/arvados-controller +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/cmd/arvados-server/arvados-dispatch-cloud.service b/cmd/arvados-server/arvados-dispatch-cloud.service index aa5cc3b4a5..d3f476b7df 100644 --- a/cmd/arvados-server/arvados-dispatch-cloud.service +++ b/cmd/arvados-server/arvados-dispatch-cloud.service @@ -18,6 +18,8 @@ StartLimitIntervalSec=0 Type=notify EnvironmentFile=-/etc/arvados/environment ExecStart=/usr/bin/arvados-dispatch-cloud +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.service b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.service index 9ca1134ed8..2af56c8d0c 100644 --- a/services/crunch-dispatch-slurm/crunch-dispatch-slurm.service +++ b/services/crunch-dispatch-slurm/crunch-dispatch-slurm.service @@ -16,6 +16,8 @@ StartLimitIntervalSec=0 [Service] Type=notify ExecStart=/usr/bin/crunch-dispatch-slurm +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 LimitNOFILE=1000000 diff --git a/services/health/arvados-health.service b/services/health/arvados-health.service index dac7c3a194..ca3744c28d 100644 --- a/services/health/arvados-health.service +++ b/services/health/arvados-health.service @@ -17,6 +17,8 @@ StartLimitIntervalSec=0 [Service] Type=simple ExecStart=/usr/bin/arvados-health +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/services/keep-balance/keep-balance.service b/services/keep-balance/keep-balance.service index 1b71fb4e44..0a38597e6c 100644 --- a/services/keep-balance/keep-balance.service +++ b/services/keep-balance/keep-balance.service @@ -16,6 +16,8 @@ StartLimitIntervalSec=0 [Service] Type=simple ExecStart=/usr/bin/keep-balance -commit-pulls -commit-trash +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=10s Nice=19 diff --git a/services/keep-web/keep-web.service b/services/keep-web/keep-web.service index 23a2c659e0..8097822777 100644 --- a/services/keep-web/keep-web.service +++ b/services/keep-web/keep-web.service @@ -16,6 +16,8 @@ StartLimitIntervalSec=0 [Service] Type=notify ExecStart=/usr/bin/keep-web +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/services/keepproxy/keepproxy.service b/services/keepproxy/keepproxy.service index 1d0113e0e4..4c63161a0d 100644 --- a/services/keepproxy/keepproxy.service +++ b/services/keepproxy/keepproxy.service @@ -16,6 +16,8 @@ StartLimitIntervalSec=0 [Service] Type=notify ExecStart=/usr/bin/keepproxy +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/services/keepstore/keepstore.service b/services/keepstore/keepstore.service index 2eba5efbfd..7047f0e6b9 100644 --- a/services/keepstore/keepstore.service +++ b/services/keepstore/keepstore.service @@ -21,6 +21,8 @@ StartLimitIntervalSec=0 Environment=GOGC=10 Type=notify ExecStart=/usr/bin/keepstore +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 diff --git a/services/ws/arvados-ws.service b/services/ws/arvados-ws.service index 4d7874d42c..36624c7877 100644 --- a/services/ws/arvados-ws.service +++ b/services/ws/arvados-ws.service @@ -16,6 +16,8 @@ StartLimitIntervalSec=0 [Service] Type=notify ExecStart=/usr/bin/arvados-ws +# Set a reasonable default for the open file limit +LimitNOFILE=65536 Restart=always RestartSec=1 -- 2.30.2