Thanks, Brad. I'm going to try this approach. If any issue comes up I
will be in touch.

Renato


Em 23/1/2009, "Brad Fino" <[email protected]> escreveu:

>I've run into this same issue periodically . so what I frequently do is have
>my memcached init script spawn N number of gmond instances.
>
>
>
>Here's a code snippet that I use :
>
>
>
>NUM_INSTANCES="3"
>
>
>
>for ((N=1; N<=NUM_INSTANCES; N++))
>
>do
>
>
>
>        prog="gmond$N"
>
>        ops="--conf=/etc/ganglia/gmond$N.conf"
>
>       PORT=$((BASE_PORT+N))
>
>
>
>        [ ! -L /usr/sbin/$prog ] && ln -sf  /usr/sbin/gmond /usr/sbin/$prog
>
>
>
>So gmond1.conf can point to a MySQL cluster
>
>Gmond2.conf can point to a memcached cluster
>
>Gmond3.conf can point to an apache cluster.  (can't imagine why you'd be
>running mysql, memcached, and apache on the same box but you get the idea)
>
>
>
>In your gmond$N.conf files you'll need to distinguish between clusters,
>ports, etc.
>
>
>
>Anyhow, use that in your gmond init script (I call mine gmond_multi).  If
>everything works you should get something like:
>
>
>
>Starting Ganglia gmond (gmond1):                           [  OK  ]
>
>Starting Ganglia gmond (gmond2):                           [  OK  ]
>
>Starting Ganglia gmond (gmond3):                           [  OK  ]
>
>
>
>
>
>
>
>Brad E. Fino
>
>IT / Operations
>
>858-245-9099
>
>[email protected]
>
>
>
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to