From: ludo@gnu.org (Ludovic Courtès)
To: Chris Marusich <cmmarusich@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Yet another Hydra mirror: hydra-mirror.marusich.info
Date: Fri, 11 Mar 2016 15:47:11 +0100 [thread overview]
Message-ID: <87d1r1ysuo.fsf@gnu.org> (raw)
In-Reply-To: <87d1r1mzbc.fsf@gmail.com> (Chris Marusich's message of "Thu, 10 Mar 2016 20:08:23 -0800")
Chris Marusich <cmmarusich@gmail.com> skribis:
> ludo@gnu.org (Ludovic Courtès) writes:
>
>> Yeah, mirror.guixsd.org also caches for one week now. I wasn’t sure how
>> much disk space that would represent, but so far we’re around 10G, so
>> increasing to 1 week seemed reasonable.
>
> Are there any URL paths a caching proxy should NOT cache for a long
> time? My understanding is that it's OK to cache all URL paths for 1
> week. Are there any URL paths for which I should return something
> different from Hydra (e.g., /nix-cache-info)?
Everything can be cached, where “everything” really means:
/nix-cache-info
/.*\.narinfo$
/nar/.*
The rest should not be proxied at all, because it’s dynamic in nature
and some of it is quite expensive to generate (things that involve
complex SQL queries.)
>> OK.
>>
>> Do you know exactly how much is cached? Also, when does caching happen?
>
> Every OK result is cached for 7 days. My understanding is that negative
> results (e.g., 404) are not cached. The storage limit is effectively
> unlimited from my perspective, since CloudFront is a service.
Good. :-)
>> When using nginx as a proxy as on mirror.guixsd.org, it fetches things
>> lazily, so on a cache miss it goes connect to hydra.gnu.org.
>
> CloudFront operates the same way.
Yeah, I’ve seen from the headers that it runs nginx.
Thanks,
Ludo’.
next prev parent reply other threads:[~2016-03-11 14:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-08 6:37 Yet another Hydra mirror: hydra-mirror.marusich.info Chris Marusich
2016-03-08 9:04 ` Andy Wingo
2016-03-08 9:57 ` Andreas Enge
2016-03-09 12:37 ` Ludovic Courtès
2016-03-08 9:13 ` Ludovic Courtès
2016-03-09 8:27 ` Chris Marusich
2016-03-09 12:42 ` Ludovic Courtès
2016-03-11 4:08 ` Chris Marusich
2016-03-11 14:47 ` Ludovic Courtès [this message]
2016-04-06 13:43 ` Nils Gillmann
2016-04-07 4:56 ` Chris Marusich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d1r1ysuo.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=cmmarusich@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).