Hi Loris,

We have done it slightly differently:

The license reservation we manage 'licenses_held' contains all the licenses
checked outside of our HPC system (i.e cannot be used by jobs on the
system). This way jobs that require more licenses than available go into
the queue and wait for licenses to be available.

Example:

Say we got 1000 Ansys HPC license which are managed by a license manager
outside of HPC and 500 of them are used in workstations across the campus.
The SLURM license information will look like below:-

scontrol show license :-
LicenseName=ansys_hpc@uni_lic_man
    Total=1000 Used=0 Free=1000 Remote=yes

scontrol show reservationame=licenses_held
ReservationName=licenses_held StartTime=2016-06-17T11:43:38
EndTime=2017-06-17T11:43:38 Duration=365-00:00:00
   Nodes=login NodeCnt=1 CoreCnt=1 Features=(null) PartitionName=(null)
Flags=SPEC_NODES,LICENSE_ONLY
   Users=root Accounts=(null) Licenses=ansys_hpc@uni_lic_man:500
State=ACTIVE


Even though 'show license' says 1000 is free, 500 of the licenses are held
in a reservation that no one can use on the HPC.

I hope it is clear.

Thank you.


On 28 June 2016 at 10:23, Loris Bennett <loris.benn...@fu-berlin.de> wrote:

>
> "Loris Bennett" <loris.benn...@fu-berlin.de>
> writes:
>
> > "Loris Bennett" <loris.benn...@fu-berlin.de>
> > writes:
> >
> >> Hi Roshan,
> >>
> >> Yes, you're right - this will work for us.  So the update tweaks the
> >> number of licences available and presumably extends the reservation by
> >> another 30 sec, so that you have essentially an infinite reservation
> >> holding, at any given time, the currently available number of
> >> licenses. Clever.
> >>
> >> Thanks again,
> >>
> >> Loris
> >
> > [snip (103 lines)]
> >
> > I have run into a problem setting up the initial reservation.
> >
> > How do I set it up just for licenses such that any user with any account
> > can use it?  It seems that either 'Users' or 'Accounts' must be
> > specified.
>
> Never mind, I figured it out.  Not specifying 'Users' and specifying
> 'Accounts=root' works.
>
> Cheers,
>
> Loris
>
> --
> Dr. Loris Bennett (Mr.)
> ZEDAT, Freie Universität Berlin         Email loris.benn...@fu-berlin.de
>

Reply via email to