I was able to do this on slurm 15.08.3 on a test environment. Here are my
notes:

- create qos
sacctmgr add qos Name=vip MaxJobsPerUser=5 MaxSubmitJobsPerUser=5
MaxTRESPerUser=cpu=128

- create partition in slurm.conf
PartitionName=batch Nodes=compute[01-05] AllowQOS=vip Default=NO
MaxTime=UNLIMITED State=UP

I believe the keyword here is to specify the QoS name when creating the
partition, for my case, I used AllowQOS=vip


James


On Wed, Nov 11, 2015 at 4:16 AM, Danny Auble <[email protected]> wrote:

> I'm guessing you also added the qos to your partition line in your
> slurm.conf as well.
>
> On November 10, 2015 5:08:24 PM PST, Paul Edmon <[email protected]>
> wrote:
>>
>> I did that but it didn't pick it up.  I must need to reconfigure again
>> after I made the qos.  I will have to try it again.  Let you know how it
>> goes.
>>
>> -Paul Edmon-
>>
>> On 11/10/2015 5:40 PM, Douglas Jacobsen wrote:
>>
>> Hi Paul,
>>
>> I did this by creating the qos, e.g. sacctmgr create qos part_whatever
>> Then in slurm.conf setting qos=part_whatever in the "whatever" partition
>> definition.
>>
>> scontrol reconfigure
>>
>> finally, set the limits on the qos:
>> sacctmgr modify qos set MaxJobsPerUser=5 where name=part_whatever
>> ...
>>
>> -Doug
>>
>> ----
>> Doug Jacobsen, Ph.D.
>> NERSC Computer Systems Engineer
>> National Energy Research Scientific Computing Center
>> <http://www.nersc.gov>
>>
>> ------------- __o
>> ---------- _ '\<,_
>> ----------(_)/  (_)__________________________
>>
>>
>> On Tue, Nov 10, 2015 at 2:29 PM, Paul Edmon <[email protected]>
>> wrote:
>>
>>>
>>> In 15.08 you are able to set QoS limits directly on a partition.  So how
>>> do you actually accomplish this?  I've tried a couple of ways, but no
>>> luck.  I haven't seen a demo of how to do this anywhere either.  My goal is
>>> to set up a partition with the following QoS parameters:
>>>
>>> MaxJobsPerUser=5
>>> MaxSubmitJobsPerUser=5
>>> MaxCPUsPerUser=128
>>>
>>> Thanks for the info.
>>>
>>> -Paul Edmon-
>>>
>>
>>
>>


-- 
*James Oguya*

Reply via email to