Gentoo Archives: gentoo-server

From: Tomasz Szymczak <ex@×××××××××.pl>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Best practices in managing large server groups
Date: Tue, 22 May 2007 13:00:50
Message-Id: 200705221458.18851.ex@valis.net.pl
In Reply to: [gentoo-server] Best practices in managing large server groups by Charles Duffy
1 On Sunday 20 of May 2007 20:29:18 Charles Duffy wrote:
2 > I'm looking at replacing SuSE SLES9 with Gentoo for an enterprise
3 > application (for reasons of flexibility and licensing) (no, we don't
4 > have an enterprise application budget -- just the reliability
5 > requirements; yaaay, startups!). We're looking to be able to deploy and
6 > manage hundreds of geographically distributed servers.
7
8 I'm using some custom made gentoo setup, it's not perfect but works fine for
9 me (>30 gentoo servers and >50 gentoo vservers in different locations)
10
11 Every gentoo server has mounted snapshot of portage tree compressed by
12 squashfs = 40MB (vservers are using bind mounted version), it's extended by
13 custom overlays (security, updates, etc). I can do 'big' upgrade of gentoo by
14 putting newer portage snapshot.
15
16 I've made custom gentoo profiles (f.e. amd64-default-20061004) which are
17 setting most things like cflags, use flags, overlays and inherits real
18 profile at the end. Also I'm extending it by creating my subprofiles to force
19 installing packages, for example:
20
21 x86-default-20061004/h (vserver hardware node)
22 vserver-default-20061004/www/php5 (www vservers with php5)
23 vserver-default-20061004/mail (mail vservers)
24
25 Most servers/vservers have /var/lib/portage/world empty, all packages are
26 forced by putting it into 'system'. Also, /etc/make.conf on all servers are
27 empty too :)
28
29 After emerge (compile) of package, it's sent into binhost server (via scp
30 in /etc/portage/bashrc) and other servers in same profile are fetching binary
31 version.
32
33
34 This solution is a little bit tricky, have some issues but after all - makes
35 many things faster and easier for me.
36
37 regards
38 --
39 Tomasz Szymczak _.-. jgs
40 GCS/M d- s-:- a-- C+++$ UL++$>++++$ P++ L++>++++ E W++ N+ w O+ '( ^{_} (
41 PS+ PE !Y PGP+ t- X- R tv-- b++>+++ DI D>+++ G e>++++ h! r- y? `~\`-----'\
42 Umys³ sprawia, ¿e wszystko siê zmienia, ¿eby upozorowaæ up³yw czasu )_)---)_)
43 --
44 gentoo-server@g.o mailing list