Limiting MPI (1.2x) traffic to one NIC

From Cluster Documentation Project
Jump to: navigation, search

As an example, say you want to run your nodes with a FastEther port for the admin and reporting functions but leave the GigaEther for the MPI traffic.

IP addresses are setup accordingly and they have their own host names. eg. borg1 is the GigaEther (eth1) while borg1_m (eth0) is the "management" interface. Now, if you don't tell MPI that there's a difference then it's going reach out and touch the machines with eth0.

To limit the MPI traffic to a specific interface you need to tell it which interface to use. A bit if string work in your mpirun.args file does the trick.

In this case:

MPI_HOST=`hostname | sed "s/_m//"`

This slices the "_m" off the end of the hostname.

(thanks to Reuti at the Uni of Marburg, Germany from the Beowulf email list)