Skip to content

jthiltges/gratia-probe-slurm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

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

  • SLURM (tested with 2.4)
  • MySQL
  • Python (tested with 2.6)
  • Python MySQLdb (in the standard MySQL-python package)
  • slurmdbd accounting storage configured and logging to MySQL

Installation

  1. Configure the ProbeConfig
  2. Add the script to cron

Sample crontab entry:

*/15 * * * * root /usr/bin/slurm_meter -s 900 -c

Notes

  • The probe gets the installed SLURM version by running the srun command. If your SLURM install is not on the path, specify it with the SlurmLocation option.

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

About

Gratia probe for SLURM resource manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages