<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Angel and Loris,<div class=""><br class=""></div><div class="">I hope this will be of at least some help, as I was tasked with trying to get site factor implemented in our cluster for the sake of making conformant, predictable priority values that were “pretty” and round, and I was not able to find any good documentation for it either.</div><div class=""><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I had originally hoped it could be set in slurm.conf or something, since I just wanted/needed a constant value, but this was the solution that worked for us.</div></div><div class="">That said, the only way I was able to make this work was by adding it to our existing job_submit.lua.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><font face="Menlo" class="">function slurm_job_submit(job_desc, part_list, submit_uid)<br class="">   job_desc.site_factor = {{ site_factor_num }}<br class="">   return slurm.SUCCESS<br class="">end</font></blockquote></div><div class=""><br class=""></div><div class="">This is a heavily dialed down copy of our job_submit.lua script, but we set the site_factor_num as a constant because of what we were trying to achieve, and we stuck that line in the slurm_job_submit function.</div><div class="">Hope that helps send y’all down the correct rabbit hole.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Reed</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 16, 2023, at 1:00 AM, Loris Bennett <<a href="mailto:loris.bennett@fu-berlin.de" class="">loris.bennett@fu-berlin.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello Angel,<br class=""><br class="">Angel de Vicente <<a href="mailto:angel.de.vicente@iac.es" class="">angel.de.vicente@iac.es</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">Hello Loris,<br class=""><br class="">"Loris Bennett" <<a href="mailto:loris.bennett@fu-berlin.de" class="">loris.bennett@fu-berlin.de</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">Did you ever find an example or write your own plugin which you could<br class="">provide as a example?<br class=""></blockquote><br class="">I'm afraid not (though I didn't persevere, because for the moment we are<br class="">trying to encourage our users not to waste resources with a different<br class="">approach).<br class=""></blockquote><br class="">Pray tell.  I would also be interested in other approaches.<br class=""><br class=""><blockquote type="cite" class="">But, in any case, I would still be interested in a site factor plugin<br class="">example, because I might revisit this in the future.<br class=""><br class="">Cheers,<br class=""></blockquote><br class="">Cheers,<br class=""><br class="">Loris<br class=""><br class="">-- <br class="">Dr. Loris Bennett (Herr/Mr)<br class="">ZEDAT, Freie Universität Berlin<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>