unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#61324] [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
@ 2023-02-06 15:55 Christopher Baines
  2023-02-10 22:41 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Baines @ 2023-02-06 15:55 UTC (permalink / raw)
  To: 61324

bordeaux.guix.gnu.org now provides access to some files by hash. This is done
through the nar-herder finding a nar produced by a fixed output derivation for
the requested content, and then providing the content stored inside that nar.

I've put this new entry at the start of the list, as I think it's more likely
to have content than the others. Because bordeaux.guix.gnu.org stores nars
indefinitely, my suspicion is that it's going to be able to fulfil more
requests than ci.guix.gnu.org, which relies on the file requested being in the
store (so the now frequent garbage collection is going to limit the files
available).

* guix/download.scm (%content-addressed-mirrors): Add bordeaux.guix.gnu.org.
---
 guix/download.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/guix/download.scm b/guix/download.scm
index fff54d7a17..561a893eee 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -387,7 +387,11 @@ (define (guix-publish host)
                         file "/" (symbol->string algo) "/"
                         (bytevector->nix-base32-string hash))))
 
-     (list (guix-publish "ci.guix.gnu.org")
+     (list (guix-publish
+            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
+            ;; publish, but it supports the same style of requests
+            "bordeaux.guix.gnu.org")
+           (guix-publish "ci.guix.gnu.org")
            (lambda (file algo hash)
              ;; 'tarballs.nixos.org' supports several algorithms.
              (string-append "https://tarballs.nixos.org/"
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61324] [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
  2023-02-06 15:55 [bug#61324] [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror Christopher Baines
@ 2023-02-10 22:41 ` Ludovic Courtès
  2023-02-11 21:04   ` bug#61324: " Christopher Baines
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2023-02-10 22:41 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 61324

Hi!

Christopher Baines <mail@cbaines.net> skribis:

> bordeaux.guix.gnu.org now provides access to some files by hash. This is done
> through the nar-herder finding a nar produced by a fixed output derivation for
> the requested content, and then providing the content stored inside that nar.

Nice!

> I've put this new entry at the start of the list, as I think it's more likely
> to have content than the others. Because bordeaux.guix.gnu.org stores nars
> indefinitely, my suspicion is that it's going to be able to fulfil more
> requests than ci.guix.gnu.org, which relies on the file requested being in the
> store (so the now frequent garbage collection is going to limit the files
> available).

Right, could be.  (At one point we had nginx caching for /file URLs; not
sure if that’s still the case, and it wouldn’t really solve the
problem.)

> * guix/download.scm (%content-addressed-mirrors): Add bordeaux.guix.gnu.org.
> ---
>  guix/download.scm | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/guix/download.scm b/guix/download.scm
> index fff54d7a17..561a893eee 100644
> --- a/guix/download.scm
> +++ b/guix/download.scm
> @@ -387,7 +387,11 @@ (define (guix-publish host)
>                          file "/" (symbol->string algo) "/"
>                          (bytevector->nix-base32-string hash))))
>  
> -     (list (guix-publish "ci.guix.gnu.org")
> +     (list (guix-publish
> +            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
> +            ;; publish, but it supports the same style of requests
> +            "bordeaux.guix.gnu.org")
> +           (guix-publish "ci.guix.gnu.org")

LGTM, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#61324: [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
  2023-02-10 22:41 ` Ludovic Courtès
@ 2023-02-11 21:04   ` Christopher Baines
  2023-02-16 10:13     ` [bug#61324] " zimoun
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Baines @ 2023-02-11 21:04 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 61324-done

[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

>> * guix/download.scm (%content-addressed-mirrors): Add bordeaux.guix.gnu.org.
>> ---
>>  guix/download.scm | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/guix/download.scm b/guix/download.scm
>> index fff54d7a17..561a893eee 100644
>> --- a/guix/download.scm
>> +++ b/guix/download.scm
>> @@ -387,7 +387,11 @@ (define (guix-publish host)
>>                          file "/" (symbol->string algo) "/"
>>                          (bytevector->nix-base32-string hash))))
>>  
>> -     (list (guix-publish "ci.guix.gnu.org")
>> +     (list (guix-publish
>> +            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
>> +            ;; publish, but it supports the same style of requests
>> +            "bordeaux.guix.gnu.org")
>> +           (guix-publish "ci.guix.gnu.org")
>
> LGTM, thanks!

Awesome, I've gone ahead and pushed this as
7d0ebe040d80adcf143656e754a82b569243568c.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#61324] [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
  2023-02-11 21:04   ` bug#61324: " Christopher Baines
@ 2023-02-16 10:13     ` zimoun
  0 siblings, 0 replies; 4+ messages in thread
From: zimoun @ 2023-02-16 10:13 UTC (permalink / raw)
  To: Christopher Baines, Ludovic Courtès; +Cc: 61324-done

Hi,

I am late to the party. :-)

On Sat, 11 Feb 2023 at 21:04, Christopher Baines <mail@cbaines.net> wrote:

>>> -     (list (guix-publish "ci.guix.gnu.org")
>>> +     (list (guix-publish
>>> +            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
>>> +            ;; publish, but it supports the same style of requests
>>> +            "bordeaux.guix.gnu.org")
>>> +           (guix-publish "ci.guix.gnu.org")

The attempts are done in the order of the list, right?  First, it tries
bordeaux.guix.gnu.org, then ci.guix.gnu.org, then tarballs.nixos.org.

Somehow it does not really matter, just to be sure the pressure is not
too much for the resources behind Bordeaux. :-)

Cheers,
simon




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-16 11:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06 15:55 [bug#61324] [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror Christopher Baines
2023-02-10 22:41 ` Ludovic Courtès
2023-02-11 21:04   ` bug#61324: " Christopher Baines
2023-02-16 10:13     ` [bug#61324] " zimoun

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).