public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files)?
Date: Sat, 12 Nov 2011 20:33:28 +0700	[thread overview]
Message-ID: <CAA2qdGW3xfpT5f=5BfU4pMx-dHj3F30yhbTRXZiBSe9px4WdOA@mail.gmail.com> (raw)
In-Reply-To: <4EBE7139.5000504@binarywings.net>

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

On Nov 12, 2011 8:20 PM, "Florian Philipp" <lists@binarywings.net> wrote:
>
> Am 12.11.2011 13:40, schrieb Pandu Poluan:
> >
> > During my drive home, something hit my brain: why not have the 'master'
> > server share the distfiles dir via NFS?
> >
> > So, the question now becomes: what's the drawback/benefit of NFS-sharing
> > vs HTTP-sharing? The scenario is back-end LAN at the office, thus, a
> > trusted network by definition.
> >
> > Rgds,
> >
>
> How exactly had you planned to share distfiles? You didn't want to
> mirror everything from the offical mirrors, did you? I'm not perfectly
> sure how portage handles a mirror that occasionally returns 404 errors
> but I think I've seen it fall back to the official mirrors in that case.

Yes, portage (at least, 2.2) automatically use the next mirror in the list.

> Anyway, making educated guesses about what should be on your own mirror
> is probably a bit ineffective unless you have a very homogeneous
> environment.
>
> What I think you /should/ have wanted is a proxy specifically configured
> to cache very large files. net-proxy/http-replicator has been made
> specifically for Gentoo distfiles.
>

I had planned on having a script peruse the log file, looking for which box
got a 404, and 1 hour later try to move the file using scp from that box
into the common local subrepo.

But http-replicator sounds mighty better :-)

> NFS has the advantage that it doesn't duplicate distfiles locally on all
> machines. It is also easier to set up. Disadvantages? I'm unsure how
> portage will handle cases when two machines fetch the same file at the
> same time.

I can always stagger the time my boxes fetch the distfiles. That should
prevent locking problems.

Rgds,

[-- Attachment #2: Type: text/html, Size: 2105 bytes --]

  reply	other threads:[~2011-11-12 13:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-12  8:24 [gentoo-user] The LIGHTEST web server (just for serving files) ? Pandu Poluan
2011-11-12  8:46 ` Nilesh Govindarajan
2011-11-12  9:01   ` Pandu Poluan
2011-11-12  9:14     ` Florian Philipp
2011-11-12 11:55       ` [gentoo-user] The LIGHTEST web server (just for serving files)? Mick
2011-11-12 12:40         ` Pandu Poluan
2011-11-12 13:01           ` Mick
2011-11-12 13:13             ` Stéphane Guedon
2011-11-12 13:22             ` Pandu Poluan
2011-11-12 13:11           ` YoYo Siska
2011-11-12 13:23             ` Pandu Poluan
2011-11-14 10:05             ` J. Roeleveld
2011-11-14 10:10               ` microcai
2011-11-14 14:36                 ` Michael Mol
2011-11-14 22:01                   ` v_2e
2011-11-15 18:40                   ` [gentoo-user] " Steven J Long
2011-11-12 13:14           ` [gentoo-user] " Florian Philipp
2011-11-12 13:33             ` Pandu Poluan [this message]
2011-11-12 17:05             ` [gentoo-user] " Holger Hoffstaette
2011-11-12 22:01           ` [gentoo-user] " Neil Bothwick
2011-11-13  0:18             ` William Kenworthy
2011-11-12 13:39 ` [gentoo-user] The LIGHTEST web server (just for serving files) ? Ciprian Dorin Craciun

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='CAA2qdGW3xfpT5f=5BfU4pMx-dHj3F30yhbTRXZiBSe9px4WdOA@mail.gmail.com' \
    --to=pandu@poluan.info \
    --cc=gentoo-user@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox