gratia-probe-slurm

Gratia probe for SLURM resource manager

The probe connects to the SLURM accounting database, retrieves records for completed jobs, and submits the JobUsageRecords to Gratia.

Requirements

Installation

  1. Configure the ProbeConfig
  2. Add the script to cron
Sample crontab entry:
*/15 * * * * root /usr/bin/slurm_meter -s 900 -c

Notes

ProbeConfig options

Option Description
SlurmDbHost="db.cluster.example.edu" Database host
SlurmDbPort="3306" Database port
SlurmDbUser="slurm" Database username with read/only access
SlurmDbPasswordFile="/etc/gratia/slurm/pwfile" File containing database password. Must only be readable to the probe. (chmod 600)
SlurmDbName="slurm_acct_db" Name of SLURM accounting database
SlurmCluster="mycluster" Name of SLURM cluster, available from "sacctmgr list cluster"

Running jobs ProbeConfig

In addition to the settings above, there are additional options for the running jobs probe.

Option Description
SlurmCEName="cluster.example.edu" The FQDN of the cluster