[torqueusers] accounting

David Singleton David.Singleton at anu.edu.au
Wed Jun 24 15:38:37 MDT 2009


Gus Correa wrote:
> Hi Jon, Troy, list
> 
> Besides Troy's suggestions:
> 
> Ole Holm Nielsen wrote a suite of scripts to do Torque/PBS accounting
> reports:
> 
> ftp://ftp.fysik.dtu.dk/pub/Torque/pbsacct-1.4.6.tar.gz
> 
> I never tried it,
> but would guess a prologue script may be able to do #2 also,
> say, by checking if the project number is on a list of projects,
> and returning an abort exit code (1),
> if the project is not valid:
> 
> http://www.clusterresources.com/torquedocs21/a.gprologueepilogue.shtml
> 
> However, this may reject the job only when it starts,
> not right after qsub, like Troy's "qsub filter" would do.
> In other words, the prologue solution defers the job deletion to run time.
> 
> My doubt is how to enforce the use of the "qsub filter",
> instead of the actual qsub command.
> I suppose the user could always write the full path to qsub, instead of 
> the filter alias.
> 

Or they could build/install their own qsub ... or they could call pbs_submit()
directly ...    Not many users would but if you have enough users ...
In the end, we decided the "right" solution was to put hooks in the server's
req_quejob().

David


More information about the torqueusers mailing list