The job manager must also be run on the master. Primarily this is so that you can tell the master the addresses of the slave nodes.
- Source the $INSTALLATION/mfclient.env file..
- Create an empty directory in the node's read-write scratch area. This directory will be referred to as $TEMP in the remaining steps.
- Execute the mpijm program with repeated --distribute-to options for each slave node and the --tempdir option pointing to $TEMP.
- Change directory to $TARGET.
- Execute the runstudy command on the study file. You may wish to redirect standard output into a file.
- Terminate the mpijm program by sending it the TERM signal.
- Remove the $TEMP directory.
Tip: The
mpijm program writes its process ID to
/var/run/Autodesk/ami2016jm/ami2016jm.pid; this path is configurable with the
--pidfile option.
Example: You have one master and three slave nodes, with hostnames slave1, slave2 and slave3. The command to run is:
$INSTALLATION/bin/mpijm
--tempdir $TEMP --distrbute-to slave1 --distrbute-to slave2
--distrbute-to slave3
The command to terminate the running Job Manager daemon is:
kill -TERM $(cat
/var/run/Autodesk/ami2016jm/ami2016jm.pid)