From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Yet another Hydra mirror: hydra-mirror.marusich.info Date: Fri, 11 Mar 2016 15:47:11 +0100 Message-ID: <87d1r1ysuo.fsf@gnu.org> References: <87a8m9jx0z.fsf@gmail.com> <87vb4xnxhl.fsf@gnu.org> <87y49s6opb.fsf@gmail.com> <87fuvzesar.fsf@gnu.org> <87d1r1mzbc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeOLZ-00089o-OT for guix-devel@gnu.org; Fri, 11 Mar 2016 09:47:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeOLT-0001GK-6h for guix-devel@gnu.org; Fri, 11 Mar 2016 09:47:21 -0500 In-Reply-To: <87d1r1mzbc.fsf@gmail.com> (Chris Marusich's message of "Thu, 10 Mar 2016 20:08:23 -0800") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Chris Marusich Cc: guix-devel@gnu.org Chris Marusich skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Yeah, mirror.guixsd.org also caches for one week now. I wasn=E2=80=99t = sure how >> much disk space that would represent, but so far we=E2=80=99re around 10= G, 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 =E2=80=9Ceverything=E2=80=9D really means: /nix-cache-info /.*\.narinfo$ /nar/.* The rest should not be proxied at all, because it=E2=80=99s dynamic in natu= re 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=E2=80=99ve seen from the headers that it runs nginx. Thanks, Ludo=E2=80=99.