Browse Source

slurm: job distribution

main
Dustin Frisch 3 months ago
parent
commit
751039157e
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 12
      shared/slurm.nix

12
shared/slurm.nix

@ -27,12 +27,20 @@ in
(attrValues nodes));
partitionName = [
"all Nodes=ALL Default=YES MaxTime=6:00:00 State=UP"
"vip Nodes=ALL AllowGroups=vip Default=NO MaxTime=INFINITE State=UP"
"all Nodes=ALL Default=YES MaxTime=6:00:00 State=UP OverSubscribe=NO"
"vip Nodes=ALL AllowGroups=vip Default=NO MaxTime=INFINITE State=UP OverSubscribe=NO"
];
extraConfig = ''
MailProg=${pkgs.mailutils}/bin/mail
# Do not block whole nodes to allow multiple jobs to fill up nodes
SelectType=select/cons_res
SelectTypeParameters=CR_CPU
# Free resources of halted jobs
PreemptType=preempt/partition_prio
PreemptMode=SUSPEND,GANG
'';
};

Loading…
Cancel
Save