guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: hydra: milano-guix-1: Commit various configuratio


From: Christopher Baines
Subject: branch master updated: hydra: milano-guix-1: Commit various configuration updates.
Date: Sat, 26 Feb 2022 09:46:38 -0500

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository maintenance.

The following commit(s) were added to refs/heads/master by this push:
     new 2c26485  hydra: milano-guix-1: Commit various configuration updates.
2c26485 is described below

commit 2c26485a3eb9b6aea4110fbd65fc9345c01ba9eb
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Feb 26 14:41:22 2022 +0000

    hydra: milano-guix-1: Commit various configuration updates.
    
    * hydra/milano-guix-1.scm (gc-job): Reduce target free space, since
    the root filesystem without the hard drives is smaller.
    <file-systems>: Stop mounting /tmp as tmpfs, as this was a workaround
    for the slow storage.
    <services>: Add NGinx to proxy node exporter requests, adjust the Guix
    Build Coordinator agent to push the machine a bit more and also tweak
    the guix-daemon configuration to have more build accounts and increase
    the timeouts.
---
 hydra/milano-guix-1.scm | 36 +++++++++++++++++++++++++++---------
 1 file changed, 27 insertions(+), 9 deletions(-)

diff --git a/hydra/milano-guix-1.scm b/hydra/milano-guix-1.scm
index b37c0eb..0f5fc08 100644
--- a/hydra/milano-guix-1.scm
+++ b/hydra/milano-guix-1.scm
@@ -41,7 +41,7 @@
 
 (define gc-job
   ;; Run 'guix gc' at 3AM every day.
-  #~(job '(next-hour '(3)) "guix gc -F 500G"))
+  #~(job '(next-hour '(3)) "guix gc -F 350G"))
 
 (define btrfs-job
   ;; Run 'btrfs balance' every three days to make free space.
@@ -75,10 +75,6 @@
             (device
              (uuid "5ec7b1a5-3db5-49d6-87d8-452931db91c4"))
             (type "btrfs"))
-          (file-system
-           (mount-point "/tmp")
-           (device "tmpfs")
-           (type "tmpfs"))
           %base-file-systems))
 
   (swap-devices '("/dev/sda2" "/dev/sdb2"))
@@ -113,6 +109,26 @@
 
             (service prometheus-node-exporter-service-type)
 
+            ;; The Prometheus node exporter isn't reachable on the
+            ;; 9100 port, so use NGinx to proxy the requests
+            (service
+             nginx-service-type
+             (nginx-configuration
+              (upstream-blocks
+               (list (nginx-upstream-configuration
+                      (name "prometheus-node-exporter")
+                      (servers '("localhost:9100")))))
+              (server-blocks
+               (list
+                (nginx-server-configuration
+                 (server-name '("milano-guix-1.mips.di.unimi.it"))
+                 (listen '("80" "[::]:80"))
+                 (locations
+                  (list
+                   (nginx-location-configuration
+                    (uri "/")
+                    (body '("proxy_pass 
http://prometheus-node-exporter;";))))))))))
+
             (service mcron-service-type
                      (mcron-configuration
                       (jobs (list gc-job btrfs-job))))
@@ -125,8 +141,8 @@
                        (uuid "b57898c3-7187-4c56-9d3c-4e68b954b79a")
                        (password-file
                         "/etc/guix-build-coordinator-agent-password")))
-                     (max-parallel-builds 8)
-                     (max-1min-load-average 24)
+                     (max-parallel-builds 12)
+                     (max-1min-load-average 32)
                      (systems '("x86_64-linux" "i686-linux"))
                      (derivation-substitute-urls
                       (list "https://data.guix.gnu.org";))
@@ -140,8 +156,10 @@
                          (substitute-urls
                           '("https://bordeaux.guix.gnu.org";))
 
-                         (max-silent-time 3600)
-                         (timeout (* 12 3600))
+                         (build-accounts 64)
+
+                         (max-silent-time (* 24 3600))
+                         (timeout (* 72 3600))
 
                          (authorized-keys
                           (cons*



reply via email to

[Prev in Thread] Current Thread [Next in Thread]