aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-12-23 18:33:24 +0000
committerChristopher Baines <mail@cbaines.net>2020-12-23 18:33:24 +0000
commit0383c09430717cac1dc072fb5430952891eaa774 (patch)
treebd6162d26ce73dabbd589895bc585c94e43236d3
parent72e0e170ea3f084310c16cbdccaa292b9136329d (diff)
downloadbuild-coordinator-0383c09430717cac1dc072fb5430952891eaa774.tar
build-coordinator-0383c09430717cac1dc072fb5430952891eaa774.tar.gz
Tweak the default max load
Make it slightly less than the available processing units, as this will probably be a better test of whether the system is busy.
-rw-r--r--scripts/guix-build-coordinator-agent.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in
index 7be261f..96c49c1 100644
--- a/scripts/guix-build-coordinator-agent.in
+++ b/scripts/guix-build-coordinator-agent.in
@@ -97,7 +97,8 @@
(metrics-file
. "/var/lib/prometheus/node-exporter/guix-build-coordinator-agent.prom")
(max-1min-load-average
- . ,(get-available-processing-units))))
+ . ,(max (- (get-available-processing-units) 1)
+ 1))))
(define (parse-options options defaults args)
(args-fold