Client Configuration (gmond
)
Note
If you want the master node to report to gmetad
, you must follow these steps in the master and compute nodes.
For the client configuration, we have to install the ganglia-gmond
package:
yum install ganglia-gmond
Next, we adjust the configuration file. First, the cluster
declaration:
cluster {
name = "Master X"
owner = "Temple University"
latlong = "unspecified"
url = "unspecified"
}
Then, the UDP send and receive channels, remember this is for the UNICAST case:
udp_send_channel {
host = 192.168.16.1
port = 8649
ttl = 1
}
udp_recv_channel {
port = 8649
retry_bind = true
}
For this basic configuration, set the TCP to accept channel:
tcp_accept_channel {
port = 8649
# If you want to gzip XML output
gzip_output = no
}
Leave the remaining configuration setting with the default values. Note that this is the most basic configuration. Ganglia can be fine-tuned to your needs, including MULTICAST mode and custom modules. The default modules can be found in the gmond
configuration file under the modules
keyword:
modules {
module {
name = "core_metrics"
}
module {
name = "cpu_module"
path = "modcpu.so"
}
...
Finally, enable and start the service gmond
:
[root@master ~]# systemctl enable gmond
[root@master ~]# systemctl start gmond