Archive for March, 2002
The command-line client (/usr/sbin/ganglia) is a small utility which is best used as an example — guiding the development of other python-based ganglia tools. The command-line client instantiates the ganglia python class (Gang). ‘Gang’ (/usr/lib/python1.5/site-packages/gmon/ganglia.py) is where all the “heavy-lifting” occurs, as it contains the methods to attach to a local gmond server and parse gmond’s XML output. Other methods are included that output specific metrics and display a help message (by dynamically examining the metrics in the XML output!).
- Updated net.h to include netinet/in.h
- Changed sockaddr_in_new function in net.c to plug a potential memory leak
- Added XML_ParserFree() call to gexec_cluster() lib call to plug up memory leak
- Modified ./gmond/server.c to prevent crashes under heavy stress conditions
- Added fclose() calls to gexec_cluster() to plug a memory leak
- Added gexec_cluster_free() call to gstat for good measure
- Preston Smith patched a wrong sysctl to get free memory for freebsd machines
- Added mute and deaf mode for gmond
- Created a new ganglia-monitor-core-lib distribution for the libganglia library. Ganglia has the start of a C API now.
- Moved all the documentation to DocBook, added much more information and updated/removed what was there. Output docs to ./docs directory of the distribution in both HTML and PDF form. Also installed Doxygen to document libganglia.
- Add the Ganglia Status Tool (gstat) which allows you to check the status of your cluster from the commandline. Hosts are sorted with least-loaded nodes at the top of the list.
- Removed the need for the POSIX mutex in pre_process_node() allowing for faster processing of incoming multicast data
- Changed gmond to not count itself as a running process when reporting the number of running processes.
- Doc Schneider changed the way ganglia builds RPMs to support non-root builds as suggested by an anonymous SourceForge user
I’ve put all the Ganglia documentation in DocBook format in order to index and organize the ganglia documentation and also create a manual in PDF which can easily be printed. The documentation is incomplete but I’m updating it daily.