+1 for features. Features can also be added / changed during runtime like this "scontrol update Node=$(hostname -s) AvailableFeatures=$FEAT ActiveFeatures=$FEAT"
Cheers, Florian ________________________________ From: slurm-users on behalf of Ward Poelmans Sent: Monday, February 6, 2023 09:03 To: slurm-users@lists.schedmd.com Subject: [External] Re: [slurm-users] Request nodes with a custom resource? Hi Xaver, On 6/02/2023 08:39, Xaver Stiensmeier wrote: > > How would you schedule a job (let's say using srun) to work on these > nodes? Of course this would be interesting in a dynamic case, too > (assuming that the database is downloaded to nodes during job > execution), but for now I would be happy with a static solution (where > it is okay to store a value before that says something like > "hasDatabase=1" on nodes. You could use features for that? A feature can be assigned to nodes and you can request nodes with specific feature for a job: In slurm.conf: NodeName=node001 CPUs=1 Feature=hasdatabase ... And for your jobs: sbatch --constraint=hasdatabase ... Ward