I'm still stewing on this. Does anyone have sacctmgr/remote license setup working?
Gareth > -----Original Message----- > From: gareth.willi...@csiro.au [mailto:gareth.willi...@csiro.au] > Sent: Wednesday, 7 January 2015 3:36 PM > To: slurm-dev > Subject: [ExternalEmail] [slurm-dev] license scheduling > > > Neither of the current license scheduling options are clear to me. > Here is what I think the options are: > 1) statically specify licenses in slurm.conf (clear) and dynamically > add/subtract them from reservations if variations are needed beyond > replacing slurm.conf and cycling slurm > 2) use the sacctmgr setup described at > http://slurm.schedmd.com/licenses.html and dynamically change what is > available if necessary. > > Then there is 3) wait for the pending release that supports floating > licenses... > > I think our preference for the moment is 2) so I've defined a couple of > entries eg. > > sacctmgr add resource name=matlab count=9 type=license > percentallowed=100 > Adding Resource(s) > matlab@slurmdb > Settings > Name = matlab > Server = slurmdb > Description = matlab > Count = 9 > Type = License > Would you like to commit changes? (You have 30 seconds to decide) > (N/y): y > > And it partly works: > > sacctmgr show resource > Name Server Type Count % Used > ---------- ---------- -------- ------ ---------- > comsol slurmdb License 3 > matlab slurmdb License 9 > > but jobs do not get scheduled: > > salloc --licenses=comsol > salloc: error: Job submit/allocate failed: Invalid license > specification > > and only static licenses are listed by: > > scontrol show lic > LicenseName=bar > Total=1 Used=0 Free=1 Remote=no > LicenseName=foo > Total=4 Used=0 Free=4 Remote=no > (I followed the slurm.conf man page to see if having some static > licenses would help). > > The failed salloc has an associated log entry: > [2015-01-07T15:29:40.954] _slurm_rpc_allocate_resources: Invalid > license specification > > > So... first I'm after some tips on getting the 'Remote licenses' > feature working. > > Secondarily, I'd appreciate a recipe for assigning licenses to a > 'dummy' reservation (just so they can't be used). > > Third, it would be nice to have the documentation improved to > incorporate such info. > > Still at slurm 14.03.0 > > Gareth Williams