I think if you tell the list why you care which of the Nodes is BatchHost, they may be able to provide you with a better solution.
Od: Bhaskar Chakraborty via slurm-users <
slurm-users@lists.schedmd.com>
Poslano: sreda, 30. oktober 2024 12:35
Za:
slurm-users@schedmd.comZadeva: [slurm-users] Change primary alloc node
Hi,
Is there a way to change/control the primary node (i.e. where the initial task starts) as part of a job's allocation.
For eg, if a job requires 6 CPUs & its allocation is distributed over 3 hosts h1, h2 & h3 I find that it always starts the task in 1 particular
node (say h1) irrespective of how many slots were available in the hosts.
Can we somehow let slurm have the primary node as h2?
Is there any C-API inside select plugin which can do this trick if we were to control it through the configured select plugin?
Thanks.
-Bhaskar.