diff options
-rw-r--r-- | guix-build-coordinator/agent.scm | 4 | ||||
-rw-r--r-- | scripts/guix-build-coordinator-agent.in | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/guix-build-coordinator/agent.scm b/guix-build-coordinator/agent.scm index f80cb10..f7a41b8 100644 --- a/guix-build-coordinator/agent.scm +++ b/guix-build-coordinator/agent.scm @@ -46,7 +46,7 @@ derivation-substitute-urls non-derivation-substitute-urls metrics-file - max-5min-load-average) + max-1min-load-average) (define lgr (make <logger>)) (define port-log (make <port-log> #:port (current-output-port) @@ -93,7 +93,7 @@ (define (wait-for-low-load build-id) (let ((current-load (get-load-average))) - (when (>= current-load max-5min-load-average) + (when (>= current-load max-1min-load-average) (log-msg lgr 'INFO build-id ": holding build start due to high load") diff --git a/scripts/guix-build-coordinator-agent.in b/scripts/guix-build-coordinator-agent.in index ce4742e..4d0666d 100644 --- a/scripts/guix-build-coordinator-agent.in +++ b/scripts/guix-build-coordinator-agent.in @@ -57,9 +57,9 @@ (alist-cons 'max-parallel-builds (string->number arg) result))) - (option '("max-5min-load-average") #t #f + (option '("max-1min-load-average") #t #f (lambda (opt name arg result) - (alist-cons 'max-5min-load-average + (alist-cons 'max-1min-load-average (string->number arg) result))) (option '("substitute-urls") #t #f @@ -124,4 +124,4 @@ (or (assq-ref opts 'non-derivation-substitute-urls) (assq-ref opts 'substitute-urls)) (assq-ref opts 'metrics-file) - (assq-ref opts 'max-5min-load-average))) + (assq-ref opts 'max-1min-load-average))) |