Hi all,
For those who like perl programming, I've modified the old perl API
available in CPAN.
I've created a new method (HStatus) that gathers info about ALL jobs in
the cluster (and also all hosts in the cluster) and returns a 2 hash
references.
Example (will show it better):
my $sge=Schedule::SGE->new(-executable=>{qsub=>'/usr/bin/qsub',
qstat=>'/usr/bin/qstat'}); my $job_info=$sge->job_hstatus();
my $queue_info=$sge->queue_hstatus();
print Dumper \$job_info;
print Dumper \$queue_info;
job_info hash:
[...]
'5666' => {
'node_name' => 'XXXXXXXX',
'day_date' => '01/10/2013',
'status' => 'r',
'name' => 'GTEX-T6MN-',
'hour_date' => '22:11:55',
'procs' => '6',
'user' => 'YYYYYYY',
'queue' => 'rg-el6',
'load' => '1.05000'
},
[...]
queue_info:
[...]
'queue@node' => {
'procs' => '0/6/16',
'states' => 'a',
'type' => 'BIP',
'hostname' =>
'XXXXXXXX', 'queue' => 'rg-el6',
'load' => '225.39'
}
[...]
The main difference between Status and HStatus are:
- how data is server (array vs hash)
- ALL data vs user data
- jobs attributes (queue/node info).
An other "interesting" software (monpetitami) is a perl daemon that
gathers info (using SGE perl API) and send data to ganglia's gmetad. It
plots jobs running / queue by UNIX group, and jobs running per queue
(it was originally designed to support torque/MAUI, and it does more
things there, like queue jobs by group by queue, or job efficiency
(cputime/walltime)). With monpetitami data and ganglia (or monpetit
itself) you can generate nice stacked graphs that show your cluster
users in a quick-nice method.
I'm new to SGE, so maybe this first version need a revision (my cluster
is not much used (yet), so I have to see how this software behaves with
high load. It did work very good with torque/MAUI, so it must work fine
in SGE).
I'm sure I'll be upgrading both things as soon as I get feedback from
my cluster.
All the software is available in git-hub:
https://github.com/pelacables/monpetitami
Hope you like it.
**Any corrections, comments, whatever will be appreciated.
*** The name "monpetitami comes from monami,
http://monami.sourceforge.net/, an unmaintended "big" software. Later I
discovered the menaing of "monpetitami".
Yep, all software names have their history.
**** I do this for fun, so don't be too much critic with my perl
skills :-)
Cheers,
Arnau
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users