Setting up Ganglia for multiple clusters

ganglia

Say I have a bunch of clients with ONE master host that houses the gmetad and web interface. If I define one cluster (i.e. 'Cluster'), it works, but let's say I want a second set of cluster, how does that work? I can't point all my client nodes to the master server? It looks like I have to create some sort of "middle man" server to collect the data for each cluster?

Best Answer

My server with the web frontend and gmetad has gmetad.conf with one gridname, plus one data_source entry for each cluster. Each data_source draws from one or more systems in the cluster:

gridname "The Grid"
data_source "Infrastructure" ihost1 ihost2 ...
data_source "Compute Nodes" chost1 chost2 ...
data_source "Workstations" work1 work2 ...

Each host registers itself into a particular cluster, and onto a cluster-specific multicast address in its gmond.conf:

cluster {
  name = "Infrastructure"
}
udp_send_channel {
  mcast_join = 239.2.11.72
  port = 8649
}
udp_recv_channel {
  mcast_join = 239.2.11.72
  port = 8649
  bind = 239.2.11.72
}
tcp_accept_channel {
  port = 8649
}
Related Topic