Updated at: February 23, 2017
e.g. MPI MPICH (MPI implementations for FORTRAN, C, and C++)
sudo apt-get install mpich
geluo@facebook-core-7868:~$ sudo cat /etc/hosts
[sudo] password for geluo:
127.0.0.1 localhost
10.149.255.xxx facebook-core-7868.lvs02.dev.ebayc3.com facebook-core-7868
10.149.255.xxx master
10.14x.211.xxx backup
10.x.248.xxx slave1
10.148.248.xxx slave2
10.148.248.xx6 slave3
10.xxx.248.xx7 slave4
10.147.211.xxx slave5
add master ip into slave hosts file..
geluo@facebook-core-7868:~$ ssh geluo@slave1 'cat /home/geluo/.ssh/authorized_keys'
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNUNY9bUKLlWno1CMen/1ZJDqKP73eCt...
geluo@facebook-core-7868:~$ mpirun -np 7 -host master,backup,slave1,slave2,slave3,slave4,slave5 hostname
facebook-core-7868
facebook-salve-std4-4653
facebook-salve-6665
facebook-salve-std5-8621
facebook-salve-std3-4646
facebook-salve-std2-6641
facebook-salve-std1-763
sudo apt-get install nfs-kernel-server
export your share foler
geluo@facebook-core-7868:~$ cat /etc/exports
/mnt/shared *(rw,sync,no_root_squash,no_subtree_check)
$ exportfs -a
install NFS client on slave
$ sudo apt-get install nfs-common
$ sudo mount -t nfs master:/mnt/shared /mnt/shared
geluo@facebook-salve-std1-7635:~$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 5.9G 12K 5.9G 1% /dev
tmpfs tmpfs 1.2G 392K 1.2G 1% /run
/dev/disk/by-label/cloudimg-rootfs ext4 57G 1.5G 53G 3% /
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 5.9G 0 5.9G 0% /run/shm
none tmpfs 100M 0 100M 0% /run/user
/dev/vdb vfat 64M 34K 64M 1% /mnt
master:/mnt/shared nfs4 591G 19G 542G 4% /mnt/shared