clusterwebimg - create gif thumbnails of cluster stats
With this utility you can generate small gifs, ideal for the web, showing cluster resources.
> clusterwebimg > ls -s ~martink/www/htdocs/clusterpunch/*gif 4 /home/martink/www/htdocs/clusterpunch/cpu.gif 4 /home/martink/www/htdocs/clusterpunch/load.gif 4 /home/martink/www/htdocs/clusterpunch/nrunning.gif 4 /home/martink/www/htdocs/clusterpunch/nusers.gif
> clusterwebimg -f /tmp
Adjust the roll call timeout to 5 seconds (default is 2 second)
> clusterwebimg -t 5
You can modify the port to send the roll call broadcast to. By default, the server lives on 8095.
> clusterwebimg -p 8096
You can modify the broadcast address. By default, this is 10.1.2.255.
> clusterwebimg -b 10.0.0.255
You can receive the full node stat table and some debug text during the polling with
> clusterwebimg -d clusterpunchclient.pm: timing out UDP after 2 seconds ... clusterpunchclient.pm: got data structure from web02 $STAT1 = { 'live' => 1, 'nusers' => '0', 'load' => '0.08', 'cpu' => '0.43558', 'io' => '0.522157', 'mflops' => 21, 'memfree' => 750, 'all' => '1.081198', 'lsof' => 1370, 'nrunning' => 1, 'mem' => '0.123461', 'mhz' => 2522 }; ...
This is part of the clusterpunch system. Each node that you wish to monitor must be running the clusterpunchserver daemon, documented in the clusterpunchserver. Once the server is running, you can poll it and send commands using the API documented in clusterpunchclient.pm, or through the various utilities, such as this one.
clusterpunchserver, clusterpunch.start, clusterpunch.shutdown
clusterpunchclient.pm
benchdriver, clusterbench, clusterlogin, clusternodecount, clustersnapshot, clusterwebimg
Martin Krzywinski (martink@bcgsc.ca)