[slurm-users] Re: FairShare priority questions

2024-03-27 Thread Paul Edmon via slurm-users
For this use case you probably want to go with Classic Fairshare 
(https://slurm.schedmd.com/classic_fair_share.html) rather than 
FairTree. Classic Fairshare behaves in a way similar to what you 
describe. You can set up different bins for fairshare and then the user 
can pull from them. So that would be my recommendation. This is how we 
handle fairshare at FASRC: https://docs.rc.fas.harvard.edu/kb/fairshare/ 
As we use Classic Fairshare. You will need to enable this: 
https://slurm.schedmd.com/slurm.conf.html#OPT_NO_FAIR_TREE as Fair Tree 
is on by default.


-Paul Edmon-

On 3/27/2024 9:22 AM, Long, Daniel S. via slurm-users wrote:


Hi,

I’m trying to set up multifactor priority on our cluster and am having 
some trouble getting it to behave the way I’d like. My main issues 
seem to revolve around FairShare.


We have multiple projects on our cluster and multiple users in those 
projects (and some users are in multiple projects, of course). I would 
like the FairShare to be based only on the project associated with the 
job; if user A and user B both submit jobs on project C, the FairShare 
should be identical. However, it looks like the FairShare is based on 
both the project and the user. Is there a way to get the behavior I’m 
looking for?


Thanks for any help you can provide.


-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com


[slurm-users] Re: FairShare priority questions

2024-03-27 Thread Paul Raines via slurm-users


We do it by assigning fairshare just to the account.

  sacctmgr -i add account $acct Description="$descr" \
 Organization="$org" fairshare=200 GrpJobsAccrue=8
  sacctmgr -i add user "$u" DefaultAccount=$acct fairshare=parent

Add the same user to other accounts with

  sacctmgr -i add user "$u" account=$acct fairshare=parent

-- Paul Raines (http://help.nmr.mgh.harvard.edu)



On Wed, 27 Mar 2024 9:22am, Long, Daniel S. via slurm-users wrote:

   External Email - Use Caution 


Hi,

I’m trying to set up multifactor priority on our cluster and am having some 
trouble getting it to behave the way I’d like. My main issues seem to revolve 
around FairShare.

We have multiple projects on our cluster and multiple users in those projects 
(and some users are in multiple projects, of course). I would like the 
FairShare to be based only on the project associated with the job; if user A 
and user B both submit jobs on project C, the FairShare should be identical. 
However, it looks like the FairShare is based on both the project and the user. 
Is there a way to get the behavior I’m looking for?

Thanks for any help you can provide.




The information in this e-mail is intended only for the person to whom it is 
addressed.  If you believe this e-mail was sent to you in error and the e-mail 
contains patient information, please contact the Mass General Brigham Compliance 
HelpLine at https://www.massgeneralbrigham.org/complianceline 
 .
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com