[Ganglia] Installation demistified

Find within this entry a ganglia setup I just created today after reading lots of different webpages.

The goal is to have 1 gmetad installation with only gmond serving the data.

Installation and design is for IBM Powersystems, but should be adapted to any other platform.

Installation

Prerequisite

Working gmetad installation (compiled or installed via RPM packages from http://www.perzl.org/ganglia/)

  1. Working GMOND Agents on your nodes
    1. Installation packages for AIX
apr-1.4.6-1.aix5.2.ppc.rpm
bash-4.2-9.aix5.1.ppc.rpm
bzip2-1.0.6-1.aix5.1.ppc.rpm
expat-2.1.0-1.aix5.1.ppc.rpm
ganglia-gmond-3.4.0-1.aix5.3.ppc.rpm
ganglia-lib-3.4.0-1.aix5.3.ppc.rpm
ganglia-mod_aixdisk-3.4.0-1.aix5.3.ppc.rpm
ganglia-mod_ibmame-3.4.0-1.aix6.1.ppc.rpm
ganglia-mod_ibmams-3.4.0-1.aix6.1.ppc.rpm
ganglia-mod_ibmfc-3.4.0-1.aix5.3.ppc.rpm
ganglia-mod_ibmnet-3.4.0-1.aix5.1.ppc.rpm
ganglia-mod_ibmrperf-3.4.0-1.aix5.3.ppc.rpm
ganglia-p6-mod_ibmpower-3.4.0-1.aix5.3.ppc.rpm
info-4.6-1.aix5.1.ppc.rpm
libconfuse-2.7-1.aix5.1.ppc.rpm
pcre-8.31-1.aix5.1.ppc.rpm
pkg-config-0.25-2.aix5.1.ppc.rpm
prngd-0.9.29-1.aix5.1.ppc.rpm
readline-6.2-4.aix5.1.ppc.rpm
zlib-1.2.7-1.aix5.1.ppc.rpm

  1. Design for Master GMOND per Cluster
    1. Either create a master_gmond per maschine, or one master gmond for all hosts (be aware that above 120 hosts ganglia could run into problems regarding RAM usage)
    2. In this example, master_gmond are per maschine. Other scenarios are untested J

GMETAD

GMETAD configuration has not to be changed, despite that you want to use a bigger timescale and stop the compression factor after time.

Default:

RRAs "RRA:AVERAGE:0.5:1:5856" "RRA:AVERAGE:0.5:4:20160" "RRA:AVERAGE:0.5:40:52704"

Our configuration:

RRAs "RRA:AVERAGE:0.5:1:80640" "RRA:AVERAGE:0.5:4:86400" "RRA:AVERAGE:0.5:20:1051

To have different clusters, you have to have 1 master gmond agent with receive and send_channels in a unicast method.

This one master gmond will be queried by the gmetad agent:

data_source "p701-Blade-I" hostname:90012
data_source "p701-Blade-II" hostname:90013
data_source "p701-Blade-III" hostname:90014

This will query all 3 different GRIDs and sumarize them into one big grid.

Master GMOND

 Master_gmond is the hostname/IP Address on which the gmond should bind its unicast.

i.e. localhost would not work for other agents to connect

 globals {
  daemonize = yes
  setuid = yes
  user = nobody
  debug_level = 0
  max_udp_msg_len = 1472
  mute = no
  deaf = no
  host_dmax = 86400 /* secs */
  cleanup_threshold = 300 /* secs */
  gexec = no
  send_metadata_interval = 0 /* secs */
}
 
cluster {
  name = "p701-Blade-III"
  owner = "Computacenter"
  latlong = "unspecified"
  url = "unspecified"
}
 
host {
  location = "DC2"
}
 
/* Feel free to specify as many udp_send_channels as you like.  Gmond
   used to only support having a single channel */
udp_send_channel {
  host = master_gmond
  port = 90014
}
 
udp_recv_channel {
  port = 90014
  bind = master_gmond
  retry_bind = true
}
 
tcp_accept_channel {
  #port = 8649
  port = 90014
}

Client GMOND

Master_gmond is the hostname/IP Address on which the gmond should bind its unicast.

i.e. localhost would not work for other agents to connect

globals {
  daemonize = yes
  setuid = yes
  user = nobody
  debug_level = 0
  max_udp_msg_len = 1472
  mute = no
  deaf = no
  host_dmax = 86400 /* secs */
  cleanup_threshold = 300 /* secs */
  gexec = no
  send_metadata_interval = 0 /* secs */
}
 
cluster {
  name = "p701-Blade-III"
  owner = "Computacenter"
  latlong = "unspecified"
  url = "unspecified"
}
 
host {
  location = "DC2"
}
 
udp_send_channel {
  host = master_gmond
  bind_hostname = yes 
  port = 90014
}
 udp_recv_channel {
  port = 90014

}

 tcp_accept_channel {
  port = 90014

}

Debugging

Start both gmond and gmetad with options “-d 10” to see most of what is happening.

Advertisements
This entry was posted in aix, Ganglia and tagged , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.