[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: services: guix: Include max-allocated-builds gbc agent option.
From: |
guix-commits |
Subject: |
02/06: services: guix: Include max-allocated-builds gbc agent option. |
Date: |
Tue, 11 Oct 2022 07:07:51 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit e83b9fe44e43ce9e8c1aad1150eaca0b5b865ca2
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Tue Oct 11 11:41:15 2022 +0100
services: guix: Include max-allocated-builds gbc agent option.
* gnu/services/guix.scm
(guix-build-coordinator-agent-configuration-max-allocated-builds):
New procedure.
(guix-build-coordinator-agent-shepherd-services): Use max-allocated-builds.
* doc/guix.texi (Guix Build Coordinator): Document this new field.
---
doc/guix.texi | 3 +++
gnu/services/guix.scm | 9 +++++++++
2 files changed, 12 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 14592142dd..33fc74d244 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -35865,6 +35865,9 @@ will use the current system it's running on as the
default.
@item @code{max-parallel-builds} (default: @code{1})
The number of builds to perform in parallel.
+@item @code{max-allocated-builds} (default: @code{#f})
+The maximum number of builds this agent can be allocated.
+
@item @code{max-1min-load-average} (default: @code{#f})
Load average value to look at when considering starting new builds, if
the 1 minute load average exceeds this value, the agent will wait before
diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm
index dac1e5841a..907824ac61 100644
--- a/gnu/services/guix.scm
+++ b/gnu/services/guix.scm
@@ -59,6 +59,7 @@
guix-build-coordinator-agent-configuration-authentication
guix-build-coordinator-agent-configuration-systems
guix-build-coordinator-agent-configuration-max-parallel-builds
+ guix-build-coordinator-agent-configuration-max-allocated-builds
guix-build-coordinator-agent-configuration-max-1min-load-average
guix-build-coordinator-agent-configuration-derivation-substitute-urls
guix-build-coordinator-agent-configuration-non-derivation-substitute-urls
@@ -177,6 +178,9 @@
(max-parallel-builds
guix-build-coordinator-agent-configuration-max-parallel-builds
(default 1))
+ (max-allocated-builds
+ guix-build-coordinator-agent-configuration-max-allocated-builds
+ (default #f))
(max-1min-load-average
guix-build-coordinator-agent-configuration-max-1min-load-average
(default #f))
@@ -406,6 +410,7 @@
(define (guix-build-coordinator-agent-shepherd-services config)
(match-record config <guix-build-coordinator-agent-configuration>
(package user coordinator authentication max-parallel-builds
+ max-allocated-builds
max-1min-load-average
derivation-substitute-urls non-derivation-substitute-urls
systems)
@@ -439,6 +444,10 @@
token-file))))
#$(simple-format #f "--max-parallel-builds=~A"
max-parallel-builds)
+ #$@(if max-allocated-builds
+ #~(#$(simple-format #f "--max-allocated-builds=~A"
+ max-allocated-builds))
+ #~())
#$@(if max-1min-load-average
#~(#$(simple-format #f
"--max-1min-load-average=~A"
max-1min-load-average))
- branch master updated (ff19460696 -> 59911ae294), guix-commits, 2022/10/11
- 01/06: gnu: guix-build-coordinator: Update to 0-62.2cd06f2., guix-commits, 2022/10/11
- 03/06: gnu: base: Add greetd-wlgreet-sway-session., guix-commits, 2022/10/11
- 04/06: gnu: Add python-pylatexenc., guix-commits, 2022/10/11
- 02/06: services: guix: Include max-allocated-builds gbc agent option.,
guix-commits <=
- 05/06: gnu: Add python-cobib., guix-commits, 2022/10/11
- 06/06: gnu: Update guile-eris to 1.0.0., guix-commits, 2022/10/11