Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:user:ansible_artscluster [2019/05/22 14:48] – created arnoschoenmakers | wiki:user:ansible_artscluster [2019/05/22 14:51] (current) – arnoschoenmakers | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ansible usage on GPU cluster ====== | ====== Ansible usage on GPU cluster ====== | ||
- | Just some instrauctions | + | Just some instructions |
- | Voor clusterwide commando’s suggereert Mike on ansible te gebruiken. Die ik krijg ik in ieder geval aan de praat: | ||
- | `apt-get install ansible` op de machine waarvandaan je commando’s wilt uitvoeren | ||
- | Daar een file `/ | ||
- | ```[artscluster_nodes] | + | For Ansible make a file `/ |
+ | [artscluster_nodes] | ||
arts[001: | arts[001: | ||
Line 15: | Line 13: | ||
[artscluster: | [artscluster: | ||
artscluster_nodes | artscluster_nodes | ||
- | artscluster_master``` | + | artscluster_master |
+ | </ | ||
- | De hosts file kan ook ergens anders staan, maar dan moet je `ANSIBLE_INVENTORY=/ | + | De hosts file kan ook ergens anders staan, maar dan moet je '' |
- | Om commando’s uit te voeren: | + | * Om commando’s uit te voeren: |
+ | * Om met een andere username in te loggen (Default is huidige user): '' | ||
+ | * Om meer processen parallel te doen (Default is 5): e.g. '' | ||
+ | * Om alle software te herstarten zou je dus het volgende kunnen doen:< | ||
+ | > ansible -u apertif -f 40 artscluster_nodes -a "sudo systemctl restart arts-nodes.service" | ||
+ | > ansible -u apertif artscluster_master -a "sudo systemctl restart arts-survey.service" | ||
+ | </ | ||
- | Om met een andere username in te loggen (Default is huidige user): `ansible | + | ===== Wat doet ansible |
- | Om meer processen parallel te doen (Default is 5): e.g. `ansible -f 40` | ||
- | Om alle software te herstarten zou je dus het volgende kunnen doen: | + | * Default timeout is 10s, daarna krijg je dit:< |
- | `ansible -u apertif -f 40 artscluster_nodes -a "sudo systemctl restart arts-nodes.service" | + | [oostrum@hermes]~$ ansible test -a " |
- | `ansible -u apertif artscluster_master -a "sudo systemctl restart arts-survey.service" | + | |
- | + | ||
- | Wat doet ansible als een host niet reageert? | + | |
- | + | ||
- | Default timeout is 10s, daarna krijg je dit: | + | |
- | ```[oostrum@hermes]~$ ansible test -a " | + | |
www.astron.nl | UNREACHABLE! => { | www.astron.nl | UNREACHABLE! => { | ||
" | " | ||
" | " | ||
" | " | ||
- | }``` | + | } |
</ | </ | ||
+ | |||
+ |