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

2023-02-06 Thread Ward Poelmans

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


smime.p7s
Description: S/MIME Cryptographic Signature


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

2023-02-05 Thread Xaver Stiensmeier

Dear slurm-user list,

how would you implement a custom resource requirement? For example you
have a group of nodes that has direct access to a large database so it
would be best to run jobs regarding that database on those nodes.

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.

So I am basically looking for custom requirements.

Best regards,
Xaver Stiensmeier