summaryrefslogtreecommitdiffstats
path: root/vespabase
diff options
context:
space:
mode:
authorArne Juul <arnej@yahooinc.com>2022-12-21 14:41:15 +0000
committerArne Juul <arnej@yahooinc.com>2022-12-21 14:41:15 +0000
commit287950d32eab1965acdddc20906d4ca3b9cef24d (patch)
tree3ae63d1bb91bd1152ecfe587d1eb896a0f43e648 /vespabase
parent958cc2a655735beca465a080e202fdf35b1e0772 (diff)
tune resource limits for systemd services
Diffstat (limited to 'vespabase')
-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