<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
+1 for features.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt;">Features can also be added / changed during runtime like this "</span><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt;">scontrol update Node=$(hostname -s)
 AvailableFeatures=$FEAT ActiveFeatures=$FEAT"</span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
Cheers,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof ContentPasted0">
Florian</div>
<div class="elementToProof">
<div id="Signature">
<div>
<div style="">
<div style=""></div>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<hr tabindex="-1" style="display:inline-block; width:98%;">
<b>From:</b> slurm-users on behalf of Ward Poelmans<br>
<b>Sent:</b> Monday, February 6, 2023 09:03<br>
<b>To:</b> slurm-users@lists.schedmd.com<br>
<b>Subject:</b> [External] Re: [slurm-users] Request nodes with a custom resource?
<div><br>
</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Xaver,<br>
<br>
On 6/02/2023 08:39, Xaver Stiensmeier wrote:<br>
> <br>
> How would you schedule a job (let's say using srun) to work on these<br>
> nodes? Of course this would be interesting in a dynamic case, too<br>
> (assuming that the database is downloaded to nodes during job<br>
> execution), but for now I would be happy with a static solution (where<br>
> it is okay to store a value before that says something like<br>
> "hasDatabase=1" on nodes.<br>
<br>
You could use features for that? A feature can be assigned to nodes and you can request nodes with specific feature for a job:<br>
<br>
In slurm.conf:<br>
NodeName=node001 CPUs=1 Feature=hasdatabase ...<br>
<br>
And for your jobs:<br>
sbatch --constraint=hasdatabase ...<br>
<br>
<br>
Ward<br>
</div>
</span></font></div>
</div>
</div>
</div>
</div>
</body>
</html>