Skip to content
Snippets Groups Projects
Commit 6cb3401f authored by Chris Hines's avatar Chris Hines
Browse files

change the slurm.conf templates to support redundant controlers and dbd

parent 1d0420f9
No related branches found
No related tags found
No related merge requests found
...@@ -4,3 +4,10 @@ ...@@ -4,3 +4,10 @@
- name: fetch slurm.conf - name: fetch slurm.conf
fetch: src=/tmp/slurm.conf dest=files/slurm.conf flat=yes fetch: src=/tmp/slurm.conf dest=files/slurm.conf flat=yes
- name: "Templating slurmdbd.conf"
template: src=slurmdbd.conf.j2 dest=/tmp/slurmdbd.conf owner=root group=root mode=644
sudo: true
- name: fetch slurm.conf
fetch: src=/tmp/slurmdbd.conf dest=files/slurmdbd.conf flat=yes
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
# #
ClusterName={{ clustername }} ClusterName={{ clustername }}
ControlMachine={{ slurmctrl }} ControlMachine={{ slurmctrl }}
{% if slurmctrlbackup is defined %}
BackupController={{ slurmctrlbackup }}
{% endif %}
#ControlAddr= #ControlAddr=
#BackupController= #BackupController=
#BackupAddr= #BackupAddr=
...@@ -121,7 +124,10 @@ Epilog={{ slurmjob.epilog }} ...@@ -121,7 +124,10 @@ Epilog={{ slurmjob.epilog }}
#JobAcctGatherFrequency=30 #JobAcctGatherFrequency=30
# #
AccountingStorageType=accounting_storage/slurmdbd AccountingStorageType=accounting_storage/slurmdbd
AccountingStorageHost={{ slurmctrl }} AccountingStorageHost={{ slurmdbd }}
{% if slurmdbdbackup is defined %}
AccountingStorageBackupHost={{ slurmdbdbackup }}
{% endif %}
#AccountingStorageEnforce=limits,safe #AccountingStorageEnforce=limits,safe
#AccountingStorageLoc= #AccountingStorageLoc=
#AccountingStoragePass= #AccountingStoragePass=
......
...@@ -17,7 +17,10 @@ AuthType=auth/munge ...@@ -17,7 +17,10 @@ AuthType=auth/munge
# #
# slurmDBD info # slurmDBD info
#DbdAddr= #DbdAddr=
DbdHost={{ slurmctrl }} DbdHost={{ slurmdbd }}
{% if slurmdbdbackup is defined %}
DbdBackupHost={{ slurmdbdbackup }}
{% endif %}
#DbdPort=7031 #DbdPort=7031
SlurmUser=slurm SlurmUser=slurm
#MessageTimeout=300 #MessageTimeout=300
...@@ -36,7 +39,7 @@ PidFile=/var/run/slurmdbd.pid ...@@ -36,7 +39,7 @@ PidFile=/var/run/slurmdbd.pid
# #
# Database info # Database info
StorageType=accounting_storage/mysql StorageType=accounting_storage/mysql
StorageHost=localhost StorageHost={{ mysql_host }}
#StoragePort=1234 #StoragePort=1234
StoragePass={{ slurmdb_passwd }} StoragePass={{ slurmdb_passwd }}
StorageUser=slurmdb StorageUser=slurmdb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment