summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-12-21 16:23:15 +0100
committerGitHub <noreply@github.com>2022-12-21 16:23:15 +0100
commitd403004585f8020c861e9c3341e63402e9e7e40a (patch)
tree541a1fc8ad3047166021d0bc47985553df829b55
parent18d376f2b7992f07c31e6d6c79fff5d457f3bbc8 (diff)
parent287950d32eab1965acdddc20906d4ca3b9cef24d (diff)
Merge pull request #25318 from vespa-engine/arnej/tune-limits-for-services
tune resource limits for systemd services
-rw-r--r--vespabase/src/vespa-configserver.service.in4
-rw-r--r--vespabase/src/vespa.service.in4
2 files changed, 8 insertions, 0 deletions
diff --git a/vespabase/src/vespa-configserver.service.in b/vespabase/src/vespa-configserver.service.in
index 4c9a1648e91..f160c2ea8ad 100644
--- a/vespabase/src/vespa-configserver.service.in
+++ b/vespabase/src/vespa-configserver.service.in
@@ -8,6 +8,10 @@ Type=forking
PIDFile=@CMAKE_INSTALL_PREFIX@/var/run/configserver.pid
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/vespa-start-configserver
ExecStop=@CMAKE_INSTALL_PREFIX@/bin/vespa-stop-configserver
+LimitNOFILE=32768:262144
+LimitCORE=0:infinity
+LimitNPROC=32768:409600
+LimitStack=8388608:16777216
[Install]
WantedBy=multi-user.target
diff --git a/vespabase/src/vespa.service.in b/vespabase/src/vespa.service.in
index 0b1887b8a78..e10724ef736 100644
--- a/vespabase/src/vespa.service.in
+++ b/vespabase/src/vespa.service.in
@@ -8,6 +8,10 @@ Type=forking
PIDFile=@CMAKE_INSTALL_PREFIX@/var/run/sentinel.pid
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/vespa-start-services
ExecStop=@CMAKE_INSTALL_PREFIX@/bin/vespa-stop-services
+LimitNOFILE=32768:262144
+LimitCORE=0:infinity
+LimitNPROC=32768:409600
+LimitStack=8388608:16777216
[Install]
WantedBy=multi-user.target