From ab7b6df080914100cc4326b7db43dab41d716cda Mon Sep 17 00:00:00 2001 From: Benjamin Dos Santos Date: Mon, 28 Oct 2019 15:19:36 +0100 Subject: [PATCH] chore: set `LimitNOFILE` and `LimitNPROC` to `infinity` See also: - https://github.com/hashicorp/nomad/issues/6557 - https://github.com/hashicorp/nomad/issues/3686 --- templates/nomad_systemd.service.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/nomad_systemd.service.j2 b/templates/nomad_systemd.service.j2 index ae861717..fd0174cf 100644 --- a/templates/nomad_systemd.service.j2 +++ b/templates/nomad_systemd.service.j2 @@ -22,6 +22,8 @@ ExecStart={{ nomad_bin_dir }}/nomad agent -config={{ nomad_config_dir }} ExecReload=/bin/kill -HUP $MAINPID KillMode=process KillSignal=SIGINT +LimitNOFILE=infinity +LimitNPROC=infinity Restart=on-failure RestartSec=42s