summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelley Spoon <kelley.spoon@linaro.org>2024-02-20 08:24:55 -0600
committerBenjamin Copeland <ben.copeland@linaro.org>2024-02-26 16:26:41 +0000
commit0e8f1d07f969e3c999446f4a3b2521d6ae69465f (patch)
tree164fe997c4e17ca546a209e2915e07cceaa7afd2
parent558211c7ec80f7e925d0d07ebd0316f98026acb6 (diff)
gerrit: add oom score adjustment to unit file
Add in a oom score adjustment to protect gerrit and prevent it from being suddenly kill when server is busy. Change-Id: Ifc0009a8d0108a30b44c1441cfc97266a782dce6 Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org> Reviewed-on: https://review.linaro.org/c/infrastructure/ansible-playbooks/+/46768 Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rwxr-xr-xroles/gerrit/templates/gerrit.service3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/gerrit/templates/gerrit.service b/roles/gerrit/templates/gerrit.service
index 1d2ed5cf..48f9578e 100755
--- a/roles/gerrit/templates/gerrit.service
+++ b/roles/gerrit/templates/gerrit.service
@@ -18,7 +18,8 @@ SyslogIdentifier=gerrit
Restart=on-failure
RestartSec=30s
StartLimitInterval=600s
-StartLimitBurst=3
+StartLimitBurst=10
+OOMScoreAdjust=-500
[Install]
WantedBy=multi-user.target