[slurm-users] Request nodes with a custom resource?

Ward Poelmans ward.poelmans at vub.be
Mon Feb 6 08:03:03 UTC 2023


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4741 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230206/48dd5a52/attachment.bin>


More information about the slurm-users mailing list