1 |
On Mon, 2010-05-17 at 21:53 +0100, Neil Bothwick wrote: |
2 |
> On Mon, 17 May 2010 19:33:18 +0100, David W Noon wrote: |
3 |
> |
4 |
> > >I share my distfiles but I don't use FTP as that means storing copies |
5 |
> > >of the same file on each computer. Instead, I use NFS. /mnt/portage is |
6 |
> > >shared across all machines on the network and DISTDIR is set |
7 |
> > >to /mnt/portage/distfiles in each make.conf. |
8 |
> > |
9 |
> > I used to do that, but it meant my NFS server had to be running to |
10 |
> > perform any software maintenance on any box, so it became a single point |
11 |
> > of failure. The FTP approach allows each box to be self-reliant. |
12 |
> |
13 |
> Fair comment. I have DISTDIR on my mail server, so if that goes down, |
14 |
> I've more to worry about that a few tarballs. Even if it is inaccessible, |
15 |
> the other computers would simply download the files to the local |
16 |
> directory. |
17 |
> |
18 |
> > >Sharing /mnt/portage like this means I can also share my overlay across |
19 |
> > >the network at /mnt/portage/local. |
20 |
> > |
21 |
> > My boxes have different stuff in their overlays, and one uses no |
22 |
> > overlay packages at all. Sharing overlays doesn't make much sense for |
23 |
> > my set-up. |
24 |
> |
25 |
> It makes sense for me because everything is in one place, making |
26 |
> maintenance and backups simpler. Even if a package is only used on one |
27 |
> computer, for now, a central location still makes sense. |
28 |
> |
29 |
|
30 |
|
31 |
As an alternative check out http-replicator - yes the clients do |
32 |
download to a local directory but that can be cleaned afterwards. It |
33 |
also allows download locally when you know you are taking the machine |
34 |
(laptop?) elsewhere. An advantage over NFS is it seems to handle |
35 |
parallel downloads of the same file so you can transparently build all |
36 |
machines in parallel without the downloads stepping on each other over a |
37 |
common NFS mount. |
38 |
|
39 |
I also use a tmfs store for distfiles on one machine with plenty of ram |
40 |
so thats a self-cleaning (on reboot :) alternative. |
41 |
|
42 |
I have used NFS as well and its ok for data stores http-replicator is |
43 |
much better. Beware - NFS can be slow and flakey if used for building |
44 |
over (/var/tmp/portage). |
45 |
|
46 |
The great thing about gentoo's build system is its so flexible! |
47 |
|
48 |
BillK |