Am 18.04.2011 16:35, schrieb Peter Humphrey:
> On Monday 18 April 2011 13:44:45 Neil Bothwick wrote:
>> On Mon, 18 Apr 2011 12:22:51 +0100, Peter Humphrey wrote:
>>> Has anyone here managed to get http-replicator running on a non-Gentoo
>>> box? It would be good to keep a distfiles repository somewhere on the
>>> LAN, and the box in question is supposed to be the LAN server, after
>>> all.
>>
>> Why do you need http-replicator for that. Use an NFS share and set
>> DISTDIR to its mount point on each Gentoo box. It's far less complicated.
> 
> Perhaps I'm being dense today, but I don't follow you. I was assuming the 
> Atom 
> box would hold the distfiles and the Gentoo boxes obtain them from it, one 
> way or 
> another. How are you assuming I'll fetch the files from Out There? I've tried 
> relying on a Squid proxy, but often it doesn't keep the files I want - even 
> after 
> I've raised the file size limit to something like 80MB.
> 

In the setup Neil proposes, every client mounts an NFS share from your
server and uses that as its DISTDIR (where it stores the downloaded
files). For downloading files, the clients access the normal public
Gentoo mirrors but because all clients share the same directory, files
that some client has already downloaded are also available for every
other client. Therefore they will not be downloaded twice.

The only possible problem with this approach is that two clients might
attempt to download the same file at the same time. Just make sure to
start your updates at different times to avoid this.

Hope this makes it a bit clearer,
Florian Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to