Hi Magnus,

Thanks, this solution probably will work for us as well.

Also, when a user does not use -L option, than this could be checked (I 
believe) in contribs/lua/job_submit.lua in several lines of code (in 
slurm_job_submit function).

--
Taras

On 03/08/2013 09:37 AM, Magnus Jonsson wrote:
> We have solved this by using the licens handler in slurm and let our 
> users specify the licences with -L.
>
> Outside of slurm we have a script that periodic check our licence 
> server (FlexLM) for awailable licenses and used licenses in slurm and 
> blocks a number of licences with a "licences" reservation that no one 
> can run in.
>
> It also has the ability to make sure that there are available licenses 
> if run in the prolog and fail the jobs if there is no licences left.
>
> It's not a perfect solution but seams to work fairly well for us.
>
> The only problem is that a user can grab a licence without specifying 
> the -L option but this is better then nothing.
>
> If anybody interesting in more details just send me an email and I try 
> to answer them.
>
> Best Regards,
> Magnus
>
> On 2013-03-08 02:58, Taras Shapovalov wrote:
>> Hi all,
>>
>> Recently I faced with the case where users use software which requires
>> licenses. The license server is running somewhere outside several
>> clusters and jobs from those clusters should check availability of the
>> licenses periodically. If there is no free licenses, then the job should
>> be re-queued (so after some time the license availability will be
>> verified again).
>>
>> Does anybody have experience with the case where job (or some script)
>> checks some condition periodically and stay in a queue if the condition
>> has not been complied yet?
>>
>> -- 
>> Taras
>

Reply via email to