Hello all,
Is there an env variable in SLURM to tell where the slurm.conf is? We would like to have on the same client node, 2 type of possible submissions to address 2 different cluster.
Thanks in advance, Christine
LEROY Christine 208562 Christine.LEROY2@cea.fr writes:
Is there an env variable in SLURM to tell where the slurm.conf is? We would like to have on the same client node, 2 type of possible submissions to address 2 different cluster.
According to man sbatch:
SLURM_CONF The location of the Slurm configuration file.
Can you not also do this with a single configuration file but configuring multiple clusters which the user can choose with the -M option? I suppose it depends on the use case; if you want to be able to choose a dev cluster over the production one, to test new config options, then the environment variable approach makes sense. If this is actually multiple clusters that the users are using in production, then the -M approach might work better?
Tim
-- Tim Cutts Scientific Computing Platform Lead AstraZeneca
Find out more about R&D IT Data, Analytics & AI and how we can support you by visiting our Service Cataloguehttps://azcollaboration.sharepoint.com/sites/CMU993 |
On 18/01/2024, 12:07, "slurm-users" slurm-users-bounces@lists.schedmd.com wrote: LEROY Christine 208562 <Christine.LEROY2@cea.frmailto:Christine.LEROY2@cea.fr> writes:
Is there an env variable in SLURM to tell where the slurm.conf is? We would like to have on the same client node, 2 type of possible submissions to address 2 different cluster.
According to man sbatch:
SLURM_CONF The location of the Slurm configuration file.
-- Regards, Bjørn-Helge Mevik, dr. scient, Department for Research Computing, University of Oslo
________________________________
AstraZeneca UK Limited is a company incorporated in England and Wales with registered number:03674842 and its registered office at 1 Francis Crick Avenue, Cambridge Biomedical Campus, Cambridge, CB2 0AA.
This e-mail and its attachments are intended for the above named recipient only and may contain confidential and privileged information. If they have come to you in error, you must not copy or show them to anyone; instead, please reply to this e-mail, highlighting the error to the sender and then immediately delete the message. For information about how AstraZeneca UK Limited and its affiliates may process information, personal data and monitor communications, please see our privacy notice at www.astrazeneca.comhttps://www.astrazeneca.com
Hi Christine,
yes, you can either set the environment variable SLURM_CONF to the full path of the configuration-file you want to use and then run any program.
Or you can do it like this
SLURM_CONF=/your/path/to/slurm.conf sinfo|sbatch|srun|...
But I am not quite sure if this is really the best way to address your needs? :-)
Regards, Hermann
On 1/18/24 10:58, LEROY Christine 208562 wrote:
Hello all,
Is there an env variable in SLURM to tell where the slurm.conf is? We would like to have on the same client node, 2 type of possible submissions to address 2 different cluster.
Thanks in advance, Christine