posted Oct 4, 2016, 1:49 AM by SRGICS UPLB
[
updated Nov 2, 2017, 3:49 AM
]
The main objective of vcluster is to provide on-demand provisioning of MPI clusters. However, sharing a cluster may be more efficient in some use cases, such as for training or teaching. This tutorial describes how to do this by using Slurm. - Create an MPI cluster using vcluster with 3 slave nodes. Name the cluster cmsc180.
- On the master node
screen -S slurm
wget https://github.com/srg-ics-uplb/peak-two-cloud/raw/master/slurm/slurm_vcluster_config/setup-master.sh
wget https://github.com/srg-ics-uplb/peak-two-cloud/raw/master/slurm/slurm_vcluster_config/setup-slave.sh
wget https://github.com/srg-ics-uplb/peak-two-cloud/raw/master/slurm/slurm_vcluster_config/adduser.sh
wget https://github.com/srg-ics-uplb/peak-two-cloud/raw/master/slurm/slurm_vcluster_config/addmany.sh
chmod 755 *.sh
sudo ./setup-master.sh
- #create users.txt, with each line having the username and password, each line separated by space
sudo ./addmany.sh users.txt
- On each slave node. (ssh from the master.)
sudo ./addmany.sh users.txt #ignore the warnings
sudo ./setup-slave.sh
- Test
- #ssh as user user01 or any user from users.txt to the master
sinfo -N -l
- When the cluster reboots, resume the nodes
sudo scontrol update NodeName=cmsc180-slave-3 State=Resume
|
|