public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: William Kenworthy <billk@iinet.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files)?
Date: Sun, 13 Nov 2011 08:18:45 +0800	[thread overview]
Message-ID: <1321143525.13390.11.camel@moriah> (raw)
In-Reply-To: <20111112220119.57df1a44@digimed.co.uk>

Its been solved in the past ... designed for just this purpose:

moriah ~ # esearch http-replicator
[ Results for search key : http-replicator ]
[ Applications found : 1 ]

*  net-proxy/http-replicator
      Latest version available: 3.0-r2
      Latest version installed: 3.0-r2
      Size of downloaded files: 38 kB
      Homepage:    http://sourceforge.net/projects/http-replicator
      Description: Proxy cache for Gentoo packages
      License:     GPL-2


moriah ~ #

I chain them together (two levels, avoiding expensive download costs) so
the remote site doesnt have it in its cache, upstream is the master
cache, which if it doesnt have it will fetch from the repo.  You can
specify what port it runs on, and then use the http_proxy entry in
make.conf to point the clients to it thus avoiding port 80 and any
existing webserver. Handles concurrent fetches transparently. Overall, I
have found it preferable to NFS which has been a bit flaky at times in
the past.

Recommended!


BillK




On Sat, 2011-11-12 at 22:01 +0000, Neil Bothwick wrote:
> On Sat, 12 Nov 2011 19:40:08 +0700, Pandu Poluan wrote:
> 
> > During my drive home, something hit my brain: why not have the 'master'
> > server share the distfiles dir via NFS?
> 
> No reason at all, I've been doing it for years without a single
> problem.
> 
> > 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.
> 
> The benefit is that everything is centralised. With an HTTP proxy, you
> still have to download from the server to each client. The only drawback
> that I experience is that if several packages use the same, large source
> file, as so many of the KDE packages do, you are repeatedly pulling the
> same file over the network, which is a little slower.
> 
> 





  reply	other threads:[~2011-11-13  0:19 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
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 [this message]
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=1321143525.13390.11.camel@moriah \
    --to=billk@iinet.net.au \
    --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