5.604 Multi-MOM Configuration

There are three steps to setting up multi-MOM capability:

  1. Configure server_priv/nodes
  2. /etc/hosts file
  3. Starting pbs_mom with Multi-MOM Options

5.604.1 Configure server_priv/nodes

The attributes mom_service_port and mom_manager_port were added to the nodes file syntax to accommodate multiple MOMs on a single node. By default pbs_mom opens ports 15002 and 15003 for the service and management ports respectively. For multiple MOMs to run on the same IP address they need to have their own port values so they can be distinguished from each other. pbs_server learns about the port addresses of the different MOMs from entries in the server_priv/nodes file. The following is an example of a nodes file configured for multiple MOMs:

hosta   np=2

hosta-1 np=2 mom_service_port=30001 mom_manager_port=30002

hosta-2 np=2 mom_service_port=31001 mom_manager_port=31002

hosta-3 np=2 mom_service_port=32001 mom_manager_port=32002

Note that all entries have a unique host name and that all port values are also unique. The entry hosta does not have a mom_service_port or mom_manager_port given. If unspecified, then the MOM defaults to ports 15002 and 15003.

5.604.2 /etc/hosts file

Host names in the server_priv/nodes file must be resolvable. Creating an alias for each host enables the server to find the IP address for each MOM; the server uses the port values from the server_priv/nodes file to contact the correct MOM. An example /etc/hosts entry for the previous server_priv/nodes example might look like the following:

192.65.73.10 hosta hosta-1 hosta-2 hosta-3

Even though the host name and all the aliases resolve to the same IP address, each MOM instance can still be distinguished from the others because of the unique port value assigned in the server_priv/nodes file.

5.604.3 Starting pbs_mom with Multi-MOM Options

To start multiple instances of pbs_mom on the same node, use the following syntax (see pbs_mom for details):

pbs_mom -m -M <port value of MOM_service_port> -R <port value of MOM_manager_port> -A <name of MOM alias>

Continuing based on the earlier example, if you want to create four MOMs on hosta, type the following at the command line:

# pbs_mom -m -M 30001 -R 30002 -A hosta-1

# pbs_mom -m -M 31001 -R 31002 -A hosta-2

# pbs_mom -m -M 32001 -R 32002 -A hosta-3

# pbs_mom

Notice that the last call to pbs_mom uses no arguments. By default pbs_mom opens on ports 15002 and 15003. No arguments are necessary because there are no conflicts.

Related Topics 

 

© 2016 Adaptive Computing