[Git][qa/jenkins.debian.net][master] 2 commits: reproducible nodes: also prevent postgres from killing by oomd

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Mar 12 16:20:45 GMT 2024



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


Commits:
e93a1356 by Holger Levsen at 2024-03-12T17:18:51+01:00
reproducible nodes: also prevent postgres from killing by oomd

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

- - - - -
9e42ab33 by Holger Levsen at 2024-03-12T17:20:10+01:00
reproducible nodes: only prevent processes exactly matching the pattern from being killed by oomd

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
=====================================
@@ -210,9 +210,9 @@ fi
 #
 # prevent some processes from being killed by oom
 #
-PROCESSES="systemd squid"
+PROCESSES="systemd squid postgres"
 for i in $PROCESSES ; do
-	PIDS=$(pgrep $i || true)
+	PIDS=$(pgrep -x $i || true)
 	for pid in $PIDS ; do
 		PROC_OOM_SCORE=/proc/$pid/oom_score_adj
 		if [ -f $PROC_OOM_SCORE ] && [ $(cat $PROC_OOM_SCORE) -ne -1000 ] ; then



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/c311bd79ad3eaa7ab96fed92f1d44b04b8cc312f...9e42ab33e949440568174992741b6b671ffe19e0

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/c311bd79ad3eaa7ab96fed92f1d44b04b8cc312f...9e42ab33e949440568174992741b6b671ffe19e0
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/20240312/461fa0bc/attachment.htm>


More information about the Qa-jenkins-scm mailing list