Phil Radden <[EMAIL PROTECTED]> writes: > On Mon, 2 Dec 2002, Thomas Davis wrote:
> The problem is certainly the disk I/O though; I've managed to get the > monitoring up and running nicely onto a ramdisk, and the load does indeed > drop to zero as you suggest. > > So my next query: is there a good strategy for getting reliable snapshots > of rrd databases so that I can run to a ramdisk but have a persistent > copy, only a minute or five out-of-date, which I can go back to if the > monitoring box goes down? I note from the archives that others have gone > the ramdisk route, so this is presumably a solved problem... I have modified the startup script to run GMEDIR=/var/lib/ganglia ... mount -t tmpfs -o size=50M,nr_inodes=10k,uid=99,gid=99 tmpfs $GMEDIR/rrds tar -C $GMEDIR -xf $GMEDIR/rrds.tar just before starting the gmetad daemon and tar -C $GMEDIR -cf $GMEDIR/rrds.tar rrds/ umount $GMEDIR/rrds after stoping gmetad. You could run "tar ... cf ..." every minute, but i don't value this data that much - saving every hour is enough for me. Andreas -- Andreas Hirczy <[EMAIL PROTECTED]> http://fubphpc.tu-graz.ac.at/~ahi/ Technische Universität Graz Telefon: +43 / 316 / 873 - 81 90 Institut für Theoretische Physik Telefax: +43 / 316 / 873 - 86 78 Petersgasse 16, A-8010 Graz mobil: +43 / 699 / 19 14 24 60

