mpiexec and cluster

I am setting up a test cluster (vagrant+virtualbox) to learn more about mpiexec and pvserver

The cluster on virtualbox has the following nodes

  1. head
  2. node-1
  3. node-2

The head node is where I can login to run something like

mpiexec -np 2 host node-1,node-2 pvserver

From outside the cluster, is it the practice to connect directly to e.g. node-1 to connect (yes it does work)

Or should I be connecting to head instead because from a network/security perspective, one should really only be allowed to connect to the head node.

If so, how should I run mpiexec so that the work is done by the node-* while the connection to the outside world is via the head node ?

Kind regards

HI @Nicholas_Yue

If so, how should I run mpiexec so that the work is done by the node-* while the connection to the outside world is via the head node ?

Using a SSH tunnel:
https://docs.paraview.org/en/latest/ReferenceManual/parallelDataVisualization.html#case-sixteen-secured-connection-to-a-server-trough-ssh-tunnel

1 Like