guix-commits
[Top][All Lists]
Advanced

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

branch master updated: hydra: bayfront: Enable building and serving zstd


From: Christopher Baines
Subject: branch master updated: hydra: bayfront: Enable building and serving zstd nars.
Date: Fri, 03 Feb 2023 12:32:55 -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 c4778aa  hydra: bayfront: Enable building and serving zstd nars.
c4778aa is described below

commit c4778aa2689e0e73e77cadb71a04dc2dfee4ea27
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Feb 3 18:31:31 2023 +0100

    hydra: bayfront: Enable building and serving zstd nars.
    
    * hydra/bayfront.scm (%bordeaux.guix.gnu.org-nginx-servers): Add
    internal location for cached nars.
    <nar-herder>: Enable generating cached zstd nars.
---
 hydra/bayfront.scm | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/hydra/bayfront.scm b/hydra/bayfront.scm
index ac8916b..3320179 100644
--- a/hydra/bayfront.scm
+++ b/hydra/bayfront.scm
@@ -681,6 +681,17 @@ add_header Content-Type text/plain;")))
 
     # Nars are already compressed.
     gzip off;
+")))
+          (nginx-location-configuration
+           (uri "~ ^/internal/cached-nar/(.*)$")
+           (body '("
+    internal;
+    root /var/cache/nar-herder;
+    try_files /nar/$1 =404;
+
+    error_page 404 /404;
+    client_body_buffer_size 256k;
+    gzip off;
 ")))
           (nginx-location-configuration
            (uri "~ \"\\/build\\/([a-z0-9-]{36})$\"")
@@ -1205,7 +1216,14 @@ add_header Content-Type text/plain;")))
                '((and (stored-on "https://bishan.guix.gnu.org";)
                       (stored-on "https://hatysa.cbaines.net";))))
               (ttl "180d")
-              (log-level 'INFO)))
+              (log-level 'INFO)
+              (cached-compressions
+               (list
+                (nar-herder-cached-compression-configuration
+                 (type 'zstd)
+                 (level 19))))
+              (cached-compression-workers 8)
+              (cached-compression-nar-source "https://bishan.guix.gnu.org";)))
 
     (service guix-build-coordinator-service-type
              %guix-build-coordinator-configuration)



reply via email to

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