Skip to content

Commit

Permalink
Updated the README for cluster_create.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Coulter <[email protected]>
  • Loading branch information
Eric Coulter committed Oct 30, 2020
1 parent 1c1be65 commit cf2bfee
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,32 @@ To build your own Virtual cluster, starting on your localhost:
(or ensure that they're available in the shared filesystem).
* For other modifications, feel free to get in touch!

1. Run ```headnode_create.sh``` - it *will* require an ssh key to exist in
1. Run ```cluster_create.sh``` - it *will* require an ssh key to exist in
```${HOME}/.ssh/id_rsa.pub```. This will be the key used for your jetstream
instance! If you prefer to use a different key, be sure to edit this
script accordingly. The expected argument is only the headnode name,
and will create an 'm1.small' instance for you.

```./headnode_create.sh <headnode-name>```
```./cluster_create.sh <headnode-name>```

Watch for the ip address of your new instance at the end of the script!
It is worth double-checking the output of the script to see that the ansible
playbook for compute image creation ran successfully - no failed tasks means
that the image for your compute nodes should be available.

1. The headnode_create script has copied everything in this directory
to your headnode. You should now be able to ssh in
to your headnode EXCEPT your local openrc file. You should now be able to ssh in
as the centos user, with your default ssh key:

```ssh centos@<new-headnode-ip>```

1. Now, in the copied directory, *on the headnode*, run the install.sh script
with sudo:
1. Your cluster is now up and running. You can submit jobs via sbatch or srun. If you
see issues with running jobs, there are useful logs in
``` /var/log/slurm/slurm_elastic```
and
``` /var/log/slurm/slurmctld.log```

```sudo ./install.sh```.

This script handles all the steps necessary to install slurm, with
elastic nodes set.

Useage note:
Slurm will run the suspend/resume scripts in response to
Expand Down

0 comments on commit cf2bfee

Please sign in to comment.