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: Wed, 09 Mar 2016 13:42:36 +0100 [thread overview]
Message-ID: <87fuvzesar.fsf@gnu.org> (raw)
In-Reply-To: <87y49s6opb.fsf@gmail.com> (Chris Marusich's message of "Wed, 09 Mar 2016 00:27:28 -0800")
Chris Marusich <cmmarusich@gmail.com> skribis:
> No, I'm not using that at the moment. In the future, if I set up any
> nginx servers to accomplish the same task, I will definitely use it. I
> would prefer to run my own servers, but for now this is something I can
> do immediately to help the project, so I decided to do it.
>
> CloudFront is a service, so you use its API (or the AWS Management
> Console, which is a web UI for the API) to create a "distribution" and
> configure it to use hydra.gnu.org as its "origin". A little extra work
> is required to glue everything together. For example, I had to create a
> CNAME pointing from hydra-mirror.marusich.info to
> d2xj50ygrk34qq.cloudfront.net, which is the canonical name of my
> distribution. Once it's configured, all requests sent to
> hydra-mirror.marusich.info are serviced by a nearby point of presence in
> the CloudFront content distribution network, and the results are cached.
OK.
Do you know exactly how much is cached? Also, when does caching happen?
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.
> I've noticed that Hydra does not include cache-related headers (e.g.,
> Cache-Control). Perhaps for this reason, the nginx config you linked
> seems to pick arbitrary caching settings. When using CloudFront, a
> distribution can be configured to respect the Cache-Control headers sent
> by the origin server. Does nginx provide similar functionality? Would it
> make sense to have hydra.gnu.org return such headers?
Dunno, maybe! Maybe we could tell nginx to add such headers? What
would be the right thing?
> For now, I've configured hydra-mirror.marusich.info to cache all
> successful requests for 1 week, and to respect cache-related headers
> from the hydra.gnu.org if it ever decides to send them. This seemed like
> a reasonable configuration for data which is not expected to change.
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.
Thanks,
Ludo’.
next prev parent reply other threads:[~2016-03-09 12:42 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 [this message]
2016-03-11 4:08 ` Chris Marusich
2016-03-11 14:47 ` Ludovic Courtès
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuvzesar.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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.