[Git][qa/jenkins.debian.net][master] jenkins nodes: prevent squid and systemd processes from being killed by oom

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Jan 30 13:50:49 GMT 2024



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
9efe9048 by Holger Levsen at 2024-01-30T14:50:33+01:00
jenkins nodes: prevent squid and systemd processes from being killed by oom

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_node_health_check.sh


Changes:

=====================================
bin/reproducible_node_health_check.sh
=====================================
@@ -197,6 +197,17 @@ if ! systemctl is-system-running > /dev/null; then
 	rm $SERVICES
 fi
 
+#
+# prevent some processes from being killed by oom
+#
+PROCESSES="systemd squid"
+for i in $PROCESSES ; do
+	PIDS=$(pgrep $i || true)
+	for pid in $PIDS ; do
+		[ ! -f /proc/$pid/oom_score_adj ] || echo -1000 | sudo tee /proc/$pid/oom_score_adj
+	done
+done
+#
 # checks only for the main node
 #
 if [ "$HOSTNAME" = "$MAINNODE" ] ; then



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/9efe90485e289e11d11891af8b2f8f3fe0c2f7f3

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/9efe90485e289e11d11891af8b2f8f3fe0c2f7f3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20240130/58b2b499/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list