[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] janitor: Reduce CPU share for janitor workers

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Apr 15 13:54:13 BST 2023



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


Commits:
f486b27f by Jelmer Vernooij at 2023-04-15T14:54:05+02:00
janitor: Reduce CPU share for janitor workers

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

- - - - -


1 changed file:

- bin/janitor_worker.sh


Changes:

=====================================
bin/janitor_worker.sh
=====================================
@@ -7,6 +7,10 @@ docker run --rm --privileged \
 	-v /srv/janitor:/srv/janitor \
 	-e BUILD_URL="${BUILD_URL}" \
 	-e NODE_NAME="${NODE_NAME}" \
+	# Reduce priority for CPU when the system is under load; default is 1024.
+	# 1024 / 2 / 6 = 8% CPU for each worker (6 workers) when the system is
+	# under load.
+	--cpu-shares 86 \
 	--tmpfs /tmp:rw,exec,dev,suid \
 	--tmpfs /var/lib/schroot/session:rw,exec,dev,suid \
 	--tmpfs /var/lib/schroot/union/overlay:rw,exec,dev,suid \



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/f486b27fbfcf39ba7d662a933b9c6a864f363360
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/20230415/8208a460/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list