mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Improved the vagrant example of a beowulf cluster bringing out the comments and adding the configuration files
This commit is contained in:
24
examples/vagrant/beowulf cluster/README.md
Normal file
24
examples/vagrant/beowulf cluster/README.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Beowulf cluster example
|
||||||
|
|
||||||
|
## Requirements:
|
||||||
|
|
||||||
|
- VirtualBox
|
||||||
|
- A host-only virtual network (`VirtualBox Host-Only Ethernet Adapter`, address space `192.168.56.0/24`)
|
||||||
|
- An SSH key pair (files `id_ed25519` and `id_ed25519.pub`, create it with the command below)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
ssh-keygen -f 'id_ed25519' -N '' -C 'controller'
|
||||||
|
```
|
||||||
|
|
||||||
|
- An SSH config file ([`ssh_config.txt`][ssh_config.txt])
|
||||||
|
- A list of hosts for MPICH ([`mpi_hosts.txt`][mpi_hosts.txt]) containing the IP addresses of the workers
|
||||||
|
|
||||||
|
When up, execute the command below and enjoy:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
vagrant ssh -c 'mpiexec -f mpi_hosts -n 3 hostname'
|
||||||
|
```
|
||||||
|
|
||||||
|
<!-- internal references -->
|
||||||
|
[mpi_hosts.txt]: mpi_hosts.txt
|
||||||
|
[ssh_config.txt]: ssh_config.txt
|
||||||
18
examples/vagrant/beowulf cluster/Vagrantfile
vendored
18
examples/vagrant/beowulf cluster/Vagrantfile
vendored
@@ -1,23 +1,5 @@
|
|||||||
Vagrant.configure("2") do |config|
|
Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
# Requirements:
|
|
||||||
#
|
|
||||||
# - VirtualBox
|
|
||||||
# - A host-only virtual network ('VirtualBox Host-Only Ethernet Adapter',
|
|
||||||
# address space '192.168.56.0/24')
|
|
||||||
# - An SSH key pair (files 'id_ed25519' and 'id_ed25519.pub')
|
|
||||||
# - An SSH config file ('ssh_config.txt') configured like so:
|
|
||||||
#
|
|
||||||
# Host 192.168.56.*
|
|
||||||
# IdentityFile ~/.ssh/id_ed25519
|
|
||||||
# StrictHostKeyChecking no
|
|
||||||
#
|
|
||||||
# - A list of hosts for MPICH ('mpi_hosts.txt') containing the IP addresses
|
|
||||||
# of the workers
|
|
||||||
|
|
||||||
# When up, execute the command below and enjoy:
|
|
||||||
# vagrant ssh -c 'mpiexec -f mpi_hosts -n 3 hostname'
|
|
||||||
|
|
||||||
controller_hostname = "controller"
|
controller_hostname = "controller"
|
||||||
controller_ip = "192.168.56.101"
|
controller_ip = "192.168.56.101"
|
||||||
|
|
||||||
|
|||||||
3
examples/vagrant/beowulf cluster/mpi_hosts.txt
Executable file
3
examples/vagrant/beowulf cluster/mpi_hosts.txt
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
192.168.56.201
|
||||||
|
192.168.56.202
|
||||||
|
192.168.56.203
|
||||||
3
examples/vagrant/beowulf cluster/ssh_config.txt
Executable file
3
examples/vagrant/beowulf cluster/ssh_config.txt
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
Host 192.168.56.*
|
||||||
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
StrictHostKeyChecking no
|
||||||
Reference in New Issue
Block a user