Wednesday, March 19, 2014

Ganglia Overview and Installation

Ganglia


Ganglia is a scalable distributed system monitoring tool that allows remote viewing live or historical statistics for a cluster. The Ganglia system consists of the following components.
·         A PHP based web front end
·         Ganglia monitoring daemon (gmond): a multi-threading monitoring daemon.
·         Ganglia Meta daemon (gmetad): a multi-threading aggregation daemon.
·         A few Small utility programs.
The daemon gmetad aggregates metrics from the gmond instances, storing them in a database.The front end pulls the metrics from the database and graphs them. You can aggregate data from multiple clusters by setting up a separate gmetad for each,and then a master gmetad to aggregate data from the others. If you configure Ganglia to monitor multiple cluster, remember to use a separate port for each cluster.
MapR with Ganglia
The CLDB reports metrics about its own load, as well as cluster-wide metrics such as CPU and memory utilization, the number of active File

Deceived


Reference Links:
http://www.msg.ucsf.edu/local/ganglia/ganglia_docs/install.html
http://sourceforge.net/apps/trac/ganglia/wiki/Gmond%203.1.x%20General%20Configuration


if we are not able to see /etc/www/ then install httpd using
yum install httpd
install gmond in all the nodes including edge nodes.
Made some changes in /etc/httpd/conf.d/ganglia.conf
<Location /ganglia>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    # Allow from .example.com
  </Location>

sudo /usr/bin/passwd ganglia 

set the password as ganglia

What is unicast and Multicast?


/etc/init.d/httpd status

To Know the process which are running on the cluster
netstat -plten

To know gmetad status
/etc/init.d/gmetad status

curl http://<IP Address/hostname>/ganglia

Process to Start gmond service:
# service gmond start/restart
or
# /etc/gmond start/restart

the above command will do the following things.

this will install the gmond binary. this binary is located /usr/sbin/gmond
You can create the default gmond configuration file with gmond binary.
This will also install the gmond daemon which will continuously collect metrics from the machine.

Installation error Message:
gmond dead but subsys locked

Solution: Increase the log level while changing dubug_level to 100 at global section
-----------------------------------
globals {
daemonize = yes
setuid = yes
user = ganglia
debug_level = 100
max_udp_msg_len = 1472
mute = no
deaf = no
host_dmax = 0 /*secs */
cleanup_threshold = 300 /*secs */
-------------------------------
gexec = no
}

No comments:

Post a Comment