[slurm-users] sharing licences with non slurm workers
Matteo Guglielmi
Matteo.Guglielmi at dalco.ch
Fri Mar 24 17:17:05 UTC 2023
Just replying to my own mail here:
RTFM
So,
It was enough to add the following:
SchedulerParameters=allow_zero_lic
in slurm.conf
________________________________
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Matteo Guglielmi <Matteo.Guglielmi at dalco.ch>
Sent: Friday, March 24, 2023 3:03:35 PM
To: slurm-users at schedmd.com
Subject: [slurm-users] sharing licences with non slurm workers
Dear all,
we have a license server which is allocating licenses to a bunk of workstation
not managed with slurm (completely independent boxes) and the nodes of a cluster,
all managed with slurm.
I wrote a simple script that keeps querying the number of licenses used by the
outside "world" and changes the total number of available license in the slurm
database.
Everything works as expected except when all licenses are used outside of slurm.
When this occurs, the total number of licenses is set to zero and slurm refuses
to accept any job asking for one or more licenses with this error message:
"sbatch: error: Batch job submission failed: Invalid license specification"
So,
is there a way to configure slurm to still accept and queue jobs even when the
total number of licenses is set temporarily to zero?
If my approach is not correct,
is there a way to share a common license server between slurm workers and non
slurm workers?
Thank you.
More information about the slurm-users
mailing list