Paddy Doyle <pa...@tchpc.tcd.ie> writes: > Hi Jacob, > > On Tue, May 28, 2019 at 11:38:23AM -0400, Jacob Chappell wrote: > >> Hello all, >> >> Is it possible in Slurm to check RawUsage against GrpTRESMins and prevent a >> job from being submitted if the RawUsage exceeds the GrpTRESMins? My center >> needs this feature for detailed accounting constraints. The RawUsage is >> important to us because we weight certain resource types and want to bill >> people appropriately (e.g., if you use 12 GB of RAM and 1 CPU you should be >> billed for 2 CPUs). > > That sounds like you want 'AccountingStorageEnforce=safe'; see:
That will not prevent the job from being submitted, only from being started. I think the Lua job submit plugin is a good place to check things like this, because it can prevent jobs from being submitted. -- Regards, Bjørn-Helge Mevik, dr. scient, Department for Research Computing, University of Oslo
signature.asc
Description: PGP signature