Re: [slurm-users] random allocation of resources

2021-12-01 Thread Christopher Samuel
On 12/1/21 3:27 pm, Brian Andrus wrote: If you truly want something like this, you could have a wrapper script look at available nodes, pick a random one and set the job to use that node. Alternatively you could have a cron job that adjusted nodes `weight` periodically to change which ones S

Re: [slurm-users] random allocation of resources

2021-12-01 Thread Brian Andrus
That would make sense, as slurm would not be aware of anything else. Slurmd does not report any ongoing status of resources. It is slurmctld that keeps track of what it has allocated. If you truly want something like this, you could have a wrapper script look at available nodes, pick a random

Re: [slurm-users] random allocation of resources

2021-12-01 Thread Benjamin Nacar
Based on some quick experiments, that doesn't do what I'm looking for. I set LLN=YES for the default partition and ran my test job several times, waiting each time for it to finish before submitting it again (so that all compute nodes were idle), and it still ended up on the same (first in the

Re: [slurm-users] random allocation of resources

2021-12-01 Thread mercan
Hi; The Slurm is selecting the nodes according to the weight parameter of the nodes. I don't know any settings to change the way of the selecting node, except the changing values of the weights. But it is not a suitable for the randomly selecting nodes. Fortunately, absolutely there is not a

Re: [slurm-users] random allocation of resources

2021-12-01 Thread Guillaume COCHARD
Hello, I think you are looking for the LLN option (Least Loaded Nodes): https://slurm.schedmd.com/slurm.conf.html#OPT_LLN Guillaume - Mail original - De: "Benjamin Nacar" À: slurm-users@lists.schedmd.com Envoyé: Mercredi 1 Décembre 2021 20:07:23 Objet: [slurm-users] random allocation o