On 03/21/2018 11:18 AM, Alexis Huxley wrote:
I'm running a node health script that needs to know the state of
the node on which it is running. Currently, I'm getting the
state with this:

        sinfo -N ... | grep `uname -n`

Depending on the load on the scheduler, this can be slow. Is there
faster way? Perhaps one that doesn't involve communicating with
the scheduler node? Thanks!

How about using Node Health Check (NHC) from https://github.com/mej/nhc ? I've written some practical info about NHC in the Wiki page https://wiki.fysik.dtu.dk/niflheim/Slurm_configuration#node-health-check

/Ole

Reply via email to