pair: data store; slurm
- First configure the LDAP datastore. See
openldap
. - Install slurm command line.
Add to
/etc/sudoers
:www-data ALL=(slurm) NOPASSWD: /usr/local/slurm/latest/bin/sacctmgr
Test using
www-data
user:sudo -uslurm /usr/local/slurm/latest/bin/sacctmgr -ip
- Add project to slurm that has no access. Call it
default
(or whatever else you want). Edit the
DATASTORES
setting in/etc/karaage3/settings.py
:DATASTORES = [ { 'DESCRIPTION': 'LDAP datastore', ... }, { 'DESCRIPTION': 'Slurm datastore', 'ENGINE': 'karaage.datastores.slurm.SlurmDataStore', 'PREFIX': [ "sudo", "-uslurm" ], 'PATH': "/usr/local/slurm/latest/bin/sacctmgr", 'NULL_PROJECT': 'default', }, ]
Values
PREFIX
,PATH
, andNULL_PROJECT
are defaults and can be omitted.- In
/etc/karaage3/settings.py
uncomment theLOGGING
assignment lines related to slurm. Reload apache.
service apache2 reload