Please have a look into the documentation at http://slurm.schedmd.com ,
esp. the man pages of sacctmgr and slurm.conf and the pages about
accounting, qos and resource limits.

Without any warranty these are the options in slurm.conf I needed:

EnforcePartLimits=YES
AccountingStorageEnforce=associations,limits,qos,safe
AccountingStorageHost=<your host>
AccountingStorageLoc=<your database name>
AccountingStoragePass=/var/run/munge/munge.socket.2
AccountingStoragePort=7031
AccountingStorageType=accounting_storage/slurmdbd
AccountingStorageUser=slurm
AccountingStoreJobComment=YES
ClusterName=<your cluster name>

You also need to configure slurmdbd in slurmdbd.conf

Then you have to add your users, accounts, qos and limits to the Slurm
DB using the sacctmgr tool.


Regards,

        Uwe







Am 14.01.2015 um 14:00 schrieb [email protected]:
> Hi Team,
> 
> I also need to do the similar configuration to restrict number of procs. Per 
> user using associations.
> Could you please suggest  any command.. or Configuration related stuff..?
> 
> 
> Thanks,
> Tejas
> -----Original Message-----
> From: Uwe Sauter [mailto:[email protected]] 
> Sent: Wednesday, January 14, 2015 5:27 PM
> To: slurm-dev
> Subject: [slurm-dev] Re: Restricting number of jobs per user in partition
> 
> 
> Hi,
> 
> an association is the combination of
> 
> * QoS
> * partition
> * account
> * cluster
> 
> With that in mind you can restrict jobs per user on a partition level, you 
> just have to add the partition to the association rules.
> 
> Regards,
> 
>       Uwe
> 
> 
> 
> Am 14.01.2015 um 11:22 schrieb Loris Bennett:
>>
>> Hi Uwe,
>>
>> Uwe Sauter <[email protected]>
>> writes:
>>
>>> Hi,
>>>
>>> have a look into Slurm accounting/QoS. There are options to limit 
>>> jobs per user, jobs per group, etc. pp.
>>>
>>> http://slurm.schedmd.com/accounting.html
>>> http://slurm.schedmd.com/qos.html
>>
>> I saw that a QOS can restrict the number of jobs per user, but how can 
>> I force the jobs submitted to a given partition to use a specific QOS?
>>
>> Cheers,
>>
>> Loris
>>
>>> Regards,
>>>
>>>     Uwe
>>>
>>>
>>>
>>> Am 14.01.2015 um 10:14 schrieb Loris Bennett:
>>>>
>>>> Hi,
>>>>
>>>> I have a test partition in which I would like to be able to restrict 
>>>> the maximum number of jobs a user may have running concurrently.
>>>>
>>>> Is this possible?
>>>>
>>>> Cheers,
>>>>
>>>> Loris
>>>>
>>>
>>

Reply via email to