Cluster status
To list current worker nodes, run the following command:sinfo, see Slurm documentation.
Output example:
idle*, this means that the node did not respond and it is unavailable. The node goes down if it does not respond quickly. For more information about common node states, see Node states.
You can customize the columns in the sinfo output by using the -o parameter. For example, sinfo -o "%20P %5D %14F %8z %10m %10d %11l %16f %N" lists the partitions, gives you the total number of nodes and shows which nodes are free, how much memory is available and the time limits for jobs currently being executed. For more information about these parameters, see Slurm documentation.
To get more information about a particular node, run the following command:
Node states
Some of the common node states include:
For a complete list of all possible node states, see Slurm documentation.
How to drain and resume a node
To drain a node (that is, stop scheduling more jobs and make the node unavailable), run the following command:Job queue
To list all jobs currently running or pending (that is, waiting for resources), run the following command:PD status, the NODELIST(REASON) column shows the reason why the job is pending. For more information about possible reasons for this status, see Slurm documentation.
Job details
To use the job ID to get more details about the job, run the following command:Completed job statistics
To get the details about the jobs already completed, run the following command:sacct, see Slurm documentation.