This page describes a simple setup process for Bodo on Amazon EC2 instances. You need to have an account on Amazon Web Services (AWS) and be familiar with the general AWS EC2 instance launch interface. The process below is for demonstration purposes only and is not recommended for production usage due to security, performance and other considerations.
- Launch instances
- Select a Linux instance type (e.g. Ubuntu Server 18.04, c5n types for high network bandwidth).
- Select number of instances (e.g. 4).
- Select placement group option for better network performance (check "add instance to placement group").
- Enable all ports in security group configuration to simplify MPI setup (add a new rule with "All traffic" Type and "Anywhere" Source).
- Setup password-less ssh between instances
a. Copy your key from your client to all instances. For example, on a Linux clients run this for all instances (find public host names from AWS portal):
Disable ssh host key check by running this command on all instances:
Create a host file with list of private hostnames of instances on home directory of all instances:
Install Anaconda Python distribution and Bodo on all instances:
4. Copy the Pi example to a file called pi.py in the home directory of all instances and run it with and without MPI and see execution times. You should see speed up when running on more cores ("-n 2" and "-n 4" cases):
Possible next experiments from here are running a more complex example like the logistic regression example. Furthermore, attaching a shared EFS storage volume and experimenting with parallel I/O in Bodo is recommended.