ISV engineering's HPC web log For HPC ISVs & OSS

Tuesday Mar 17, 2009

Ganglia is a scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. It is based on a hierarchical design targeted at federations of clusters.

For this setup we will use the following software packages:

1. Ganglia - the core Ganglia package

2. Zlib - zlib compression libraries

3. Libgcc - low-level runtime library

4. Rrdtool - round Robin Database graphing tool

5. Apache web server with php support

You can get the  packagers ( 1-3)  from sunfreeware (depending on your architecture -  x86 or SPARC)

Unzip and Install the packages

1. gzip -d ganglia-3.0.7-sol10-sparc-local.gz
  
   pkgadd -d ./ganglia-3.0.7-sol10-sparc-local
 
2. gzip -d zlib-1.2.3-sol10-sparc-local.gz 
  
   pkgadd -d ./zlib-1.2.3-sol10-sparc-local 
  
3. gzip -d libgcc-3.4.6-sol10-sparc-local.gz
  
   pkgadd -d ./libgcc-3.4.6-sol10-sparc-local
  

4. You will need pkgutil from blastwave in order to install rrdtool software packages

  

/usr/sfw/bin/wget http://blastwave.network.com/csw/unstable/sparc/5.8/pkgutil-1.2.1,REV=2008.11.28-SunOS5.8-sparc-CSW.pkg.gz


 
gunzip pkgutil-1.2.1,REV=2008.11.28-SunOS5.8-sparc-CSW.pkg.gz


 
pkgadd -d pkgutil-1.2.1,REV=2008.11.28-SunOS5.8-sparc-CSW.pkg

 

Now you can install packages with all required dependencies with a single command:

/opt/csw/bin/pkgutil -i rrdtool
  
5. You will need to download Apache ,PHP and Core libraries from Cool stack

Core libraries used by other packages

bzip2 -d CSKruntime_1.3.1_sparc.pkg.bz2
  
pkgadd -d ./CSKruntime_1.3.1_sparc.pkg
  


Apache 2.2.9,  PHP 5.2.6

 bzip2 -d CSKamp_1.3.1_sparc.pkg.bz2
  
 pkgadd -d ./CSKamp_1.3.1_sparc.pkg
  
The following packages are available:
 
  1  CSKapache2     Apache httpd
  
                    (sparc) 2.2.9
   
  2  CSKmysql32     MySQL 5.1.25 32bit
    
                    (sparc) 5.1.25
 
  3  CSKphp5        PHP 5
  
                    (sparc) 5.2.6
  
Select package(s) you wish to process (or 'all' to process
   
all packages). (default: all) [?,??,q]:1,3
 

Select the 1 and 3 option

Enable the web server service

svcadm enable svc:/network/http:apache22-csk 
 

Verify it is working

svcs svc:/network/http:apache22-csk


STATE          STIME    FMRI


online         17:02:13 svc:/network/http:apache22-csk
  

 Locate the Web server  DocumentRoot

grep DocumentRoot /opt/coolstack/apache2/conf/httpd.conf
 
DocumentRoot "/opt/coolstack/apache2/htdocs" 
  

Copy the Ganglia directory tree

cp -rp /usr/local/doc/ganglia/web  /opt/coolstack/apache2/htdocs/ganglia
 

Change the rrdtool path on  /opt/coolstack/apache2/htdocs/ganglia/conf.php

from /usr/bin/rrdtool  to /opt/csw/bin/rrdtool


 


 

Start the gmond daemon with the default configuration

/usr/local/sbin/gmond --default_config > /etc/gmond.conf
 

Edit /etc/gmond.conf  ,change  name = "unspecified"  to name="grid1"  (This is our grid name.)

Verify that it has started : 

ps -ef | grep gmond 
nobody  3774 1 0 16::57:41 ? 0:55 /usr/local/gmond
 

In order to debug any problem, try:

/usr/local/sbin/gmond --debug=9
 

Build the directory for the rrd images

mkdir -p /var/lib/ganglia/rrds
chown -R nobody  /var/lib/ganglia/rrds  
  
Add the folowing line to /etc/gmetad.conf
data_source "grid1"  localhost 
  

Start the gmetad daemon

/usr/local/sbin/gmetad
  

Verify it -->

 ps -ef | grep gmetad

nobody  4350     1   0 17:10:30 ?           0:24 /usr/local/sbin/gmetad
 

To debug any problem

  
/usr/local/sbin/gmetad --debug=9

Point your browser to: http://server-name/ganglia


  

  

  
Comments:

Good article. Thanks a lot.
You should remove the space character in the link http://www.sunfreeware.com%20/ between '.com' and '/'.

Posted by 194.2.91.222 on March 19, 2009 at 03:33 AM PDT #

Post a Comment:
Comments are closed for this entry.