diff options
author | Christopher Baines <mail@cbaines.net> | 2021-05-21 19:53:43 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-05-21 20:29:38 +0100 |
commit | 494ca35f938e1c5b1bcb33a989c01ee432ce26b0 (patch) | |
tree | 0b0f70adebf5e0439e86afe67e42500dacf1de20 /scripts | |
parent | 0c0f30f0a4146c4e548cd9843d26b0bc02cb5024 (diff) | |
download | build-coordinator-494ca35f938e1c5b1bcb33a989c01ee432ce26b0.tar build-coordinator-494ca35f938e1c5b1bcb33a989c01ee432ce26b0.tar.gz |
Switch to a default 1min load average of 3/4 of the processor count
As this will be a better default on machines with more cores.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/guix-build-coordinator-agent.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in index b5c0bd0..f75aaca 100644 --- a/scripts/guix-build-coordinator-agent.in +++ b/scripts/guix-build-coordinator-agent.in @@ -117,7 +117,8 @@ (metrics-file . "/var/lib/prometheus/node-exporter/guix-build-coordinator-agent.prom") (max-1min-load-average - . ,(max (- (total-processor-count) 1) + . ,(max (ceiling + (* 3 (/ (total-processor-count) 4))) 1)))) (define (parse-options options defaults args) |