John,
You've got the right idea, you just need a different approach.
There are two ways to do this and they depend on your network. My
question to you is, is it possible to route traffic from a node on one
subnet to the other? If this isn't possible, you are screwed for the
next two solutions.
1. I assume you are using multicast to communicate between headnodes. If
you increase the Time To Live or ttl, on your multicast packets, the
packets may get from the nodes of one subnet to the headnodes on the
other subnet. This method questionable because it makes all the nodes
quite multicast chatty. You would have to change part of your gmond.conf
to look similar to:
udp_send_channel {
mcast_join = 239.2.11.71
port = 8649
ttl = 2
}
and your gmetad.conf like:
data_source "WWW" www1 www3 www5
This all assumes that the multicast packets can get from one subnet to
the other. You should set the ttl to the number of hops (traceroute)
from a node on one subnet to a node on the other (or try hops +1).
2. Change from multicast to unicast. (a better soln) This will not
spread multicast packets all over the place. This assumes you can route
packets from every node to each of the head nodes. You should use the
same gmetad.conf as above.
gmond.conf:
udp_send_channel {
host = "www1"
port = "8649"
}
udp_send_channel {
host = "www3"
port = "8649"
}
udp_send_channel {
host = "www5"
port = "8649"
}
udp_recv_channel {
port = "8649"
}
For either solution you should restart the processes in the following
order after editing the config files:
1. stop gmetad
2. stop all gmonds
3. start all gmonds
4. start gmetad
Good Luck,
Ian
PS. forgot to CC the list.
john allspaw wrote:
Sorry, more info on what I *thought* was the solution:
I try running gmetad on www11 (on subnet2) , so that it can be polled by the
frontend box (on subnet1) via TCP on port 8651.
Lo and behold, telnetting to 8651 on www11 dumps the xml stream (I have
trusted_hosts set on www11 to trust the frontend machine) for all of www11-15.
So that is good.
question is...how can I get www1-10 (subnet1) and www11-15 (subnet2) to be in
the same cluster in the web frontend ?
I have in the main frontend gmetad.conf:
data_source "WWW" www1 www3 www5
data_source "WWW" www11:8651
but that splits the two groups into two grids. If I turn scalable off, then
all I get is www11-15 in the WWW cluster, I assume because it's the last
directive ?
Not sure. Thoughts ?
-john
----- Original Message ----
From: john allspaw <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, September 22, 2006 4:16:36 PM
Subject: [Ganglia-general] how to get machines from different subnets into same
cluster
Hi all -
I apologize for what seems to be a commonly-asked question, but to be honest,
searching through the mail archives on sourceforge is like getting my molars
pulled. :)
I have one grid. I have www1-10 servers on one subnet, and they're graphing fine on my
gmetad host. I have some new machines, www11-15, but on another subnet, unfortunately.
Is there any way to get ALL of www1-15 to show up on the same "www" cluster,
all together, without having to have www1-10 on one grid, and www11-15 on another ?
I've tried putting gmetad on www11, and having:
data_source WWW www1 www3 www5
data_source WWW www11:8651
and that just splits them up into grids, which isn't what I'd like.
Is what I'm doing possible with ganglia ?
thanks a lot, in advance,
john
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general