guix-devel
[Top][All Lists]
Advanced

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

Re: Make guix-publish's URL identical to cache file name


From: Ludovic Courtès
Subject: Re: Make guix-publish's URL identical to cache file name
Date: Fri, 06 Nov 2020 10:51:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

Jonathan Brielmaier <jonathan.brielmaier@web.de> skribis:

> I'm running myself a smaller cuirass+publish server and I have
> configured the caching on the nginx side and not with `guix publish`.

This is suboptimal because then your /nar responses lack the
‘Content-Length’ header (‘guix publish’ cannot provide that header when
running without ‘--cache’), which in turn means no progress bar, no
estimate of the amount of data downloaded, etc.

> For me it has a dramatic speed up on my German server reaching from
> Germany. So 2-3MB/s on a cold cache hit versus a hot cache with 15MB/s
> and even more.

‘guix publish --cache’ should bring you the same benefits.  I’d still
recommend having nginx in front of it (for HTTPS, etc.), but caching can
be disabled in nginx in that case.  That’s what we do on
ci.guix.gnu.org.

Ludo’.



reply via email to

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