Skip to content

Commit

Permalink
SLURM: Restart slurmd daemons on worker nodes after all the configu…
Browse files Browse the repository at this point in the history
…ration is done.

Otherwise the cluster nodes show up as "down" in the
`squeue` output for unclear reasons.
  • Loading branch information
riccardomurri committed May 26, 2016
1 parent c3e17f5 commit 48e544e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions elasticluster/share/playbooks/roles/slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,20 @@
- fs: '{{groups.slurm_master[0]}}:/home'
mountpoint: '/home'
- slurm-client


- name: Restart SLURMd after all config is done
hosts: slurm_workers
tasks:
- service:
name=slurmd
state=restarted
when: '{{is_debian_8_or_later}} or {{is_ubuntu_15_10_or_later}}'
- service:
name=slurm-llnl
state=restarted
when: 'not {{is_debian_8_or_later}} and not {{is_ubuntu_15_10_or_later}}'
- service:
name=slurmd
state=restarted
when: '{{is_rhel_compatible}}'

0 comments on commit 48e544e

Please sign in to comment.