[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: offload: Look at machine loads for the past minute.
From: |
Ludovic Courtès |
Subject: |
01/07: offload: Look at machine loads for the past minute. |
Date: |
Mon, 15 Jan 2018 17:29:40 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 309121a113aa92f26085e37547715443d3bfee56
Author: Ludovic Courtès <address@hidden>
Date: Sun Jan 14 23:09:28 2018 +0100
offload: Look at machine loads for the past minute.
Previously we were looking at the load of the past 5 minutes, which
means that, after a build, we could end up waiting for 5 minutes for
that metric to be low enough.
* guix/scripts/offload.scm (machine-load): Compute RAW based on ONE, not
FIVE.
---
guix/scripts/offload.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm
index d011520..56d6de6 100644
--- a/guix/scripts/offload.scm
+++ b/guix/scripts/offload.scm
@@ -400,7 +400,7 @@ allowed on MACHINE. Return +∞ if MACHINE is unreachable."
+inf.0 ;MACHINE does not respond, so assume it is infinitely loaded
(match (string-tokenize line)
((one five fifteen . x)
- (let* ((raw (string->number five))
+ (let* ((raw (string->number one))
(jobs (build-machine-parallel-builds machine))
(normalized (/ raw jobs)))
(format (current-error-port) "load on machine '~a' is ~s\
- branch master updated (b640370 -> c181636), Ludovic Courtès, 2018/01/15
- 01/07: offload: Look at machine loads for the past minute.,
Ludovic Courtès <=
- 03/07: ui: Disable '%fresh-auto-compile' only for Guile 2.2.3., Ludovic Courtès, 2018/01/15
- 07/07: services: bitlbee: Add test., Ludovic Courtès, 2018/01/15
- 02/07: doc: Connect "guix archive", "guix pack", and co., Ludovic Courtès, 2018/01/15
- 06/07: doc: Deprecate 'bitlbee-service' procedure., Ludovic Courtès, 2018/01/15
- 04/07: linux-container: Work around EBADF errors upon exit., Ludovic Courtès, 2018/01/15
- 05/07: services: bitlbee: Move to (gnu services messaging)., Ludovic Courtès, 2018/01/15