[slurm-users] Working with local licenses

Loris Bennett loris.bennett at fu-berlin.de
Mon Sep 28 07:23:12 UTC 2020


"Tager, Alexey" <alexeyt at amazon.com> writes:

> Hi Ahmet,
>
> I agree, it isn't so good solution

We used to use a solution which also wasn't very good, but perhaps
slightly better than restarting slurmctld every minute.  We created an
unlimited reservation and then updated the reservation via a cron job
with the current number of free licences.  Obviously the users then had
to specify the reservation as well as the licence.

Cheers,

Loris

> Thanks
> Alexey
>
> -----Original Message-----
> From: mercan <ahmet.mercan at uhem.itu.edu.tr> 
> Sent: Friday, September 25, 2020 11:50 AM
> To: Tager, Alexey <alexeyt at amazon.com>; Slurm User Community List <slurm-users at lists.schedmd.com>
> Subject: RE: [EXTERNAL] [slurm-users] Working with local licenses
>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
>
>
>
> Hi;
>
> But, restarting in every minute, is not a good solution.
>
> Ahmet M.
>
>
> On 25.09.2020 11:25, Tager, Alexey wrote:
>> Hi Ahmet,
>>
>> We tried remote licenses, but encountered following issues, which lead us to using of local licenses.
>> - only low case while inserting by sacctmgr
>>   - dead locks and duplicate records
>> - direct insert is working and case sensitive, but scontrol doesn't 
>> see change until slurmctld restart
>>
>>
>> Regards
>> Alexey
>>
>> -----Original Message-----
>> From: mercan <ahmet.mercan at uhem.itu.edu.tr>
>> Sent: Friday, September 25, 2020 11:16 AM
>> To: Slurm User Community List <slurm-users at lists.schedmd.com>; Tager, 
>> Alexey <alexeyt at amazon.com>
>> Subject: RE: [EXTERNAL] [slurm-users] Working with local licenses
>>
>> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
>>
>>
>>
>> Hi;
>>
>> You don't need to modify slurm.conf and reconfigure. There is a remote/dynamic licenses feature:
>>
>> https://slurm.schedmd.com/licenses.html
>>
>> You can add licenses using scontrol command such as:
>>
>> sacctmgr add resource name=matlab count=50 server=rlm_host \
>>     servertype=rlm type=license
>>
>> Regards;
>>
>> Ahmet M.
>>
>>
>> On 25.09.2020 11:09, Tager, Alexey wrote:
>>> Hello,
>>>
>>> We use  local licenses by updating slurm.conf with script,
>>>
>>> which talking with FlexLM
>>>
>>> We execute “scontrol reconfigure” every 1 min after file change in 
>>> crontab
>>>
>>> Users get following error when run slurm commands (srun,scontrol 
>>> etc.) during
>>>
>>> crontab execution, as result srun failed on license request
>>>
>>> Any option to prevent such behavior ?
>>>
>>> [September 24, 2020, 7:18 PM] Tager, Alexey: scontrol: error: Parse 
>>> error in file /tools/slurm/etc/slurm_licenses.conf line 10: "Licenses="
>>>
>>> scontrol: error: "Include" failed in file /tools/slurm/etc/slurm.conf 
>>> line 13
>>>
>>> scontrol: fatal: Unable to process configuration file
>>>
>>> /Alexey Tager/
>>>
-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin         Email loris.bennett at fu-berlin.de



More information about the slurm-users mailing list