You are here: Appendices > Appendix H: Running Multiple Torque Servers and MOMs on the Same Node

H.1 Running Multiple Torque Servers and MOMs on the Same Node

Torque can be configured to allow multiple servers and MOMs to run on the same node. This example will show how to configure, compile and install two different Torque servers and MOMs on the same node. For details, see these topics:

H.1.1 Configuring the First Torque

./configure --with-server-home=/usr/spool/PBS1 --bindir=/usr/spool/PBS1/bin --sbindir=/usr/spool/PBS1/sbin

Then make and make install will place the first Torque into /usr/spool/PBS1 with the executables in their corresponding directories.

H.1.2 Configuring the Second Torque

./configure --with-server-home=/usr/spool/PBS2 --bindir=/usr/spool/PBS2/bin --sbindir=/usr/spool/PBS2/sbin

Then make and make install will place the second Torque into /usr/spool/PBS2 with the executables in their corresponding directories.

H.1.3 Bringing the First Torque Server online

Each command, including pbs_server and pbs_mom, takes parameters indicating which servers and ports to connect to or listen on (when appropriate). Each of these is documented in their corresponding man pages (configure with --enable-docs).

In this example the first Torque server will accept batch requests on port 35000 and communicate with the MOMs on port 35001. The first Torque MOM will try to connect to the server on port 35000 and it will listen for requests from the server on port 35001. (Each of these command arguments is discussed in further details on the corresponding man page. In particular, -t create is only used the first time a server is run.)

> pbs_server -p 35000 -M 35001 -t create

> pbs_mom -S 35000 -M 35001

Afterwards, when using a client command to make a batch request it is necessary to specify the server name and server port (35000):

> pbsnodes -a -s node01:35000

Submitting jobs can be accomplished using the -q option ([queue][@host[:port]]):

> qsub -q @node01:35000 /tmp/script.pbs

H.1.4 Bringing the Second Torque Server Online

In this example the second Torque server will accept batch requests on port 36000, communicate with the MOMS on port 36001, and communicate via TCP on port 36002. The second Torque MOM will try to connect to the server on port 36000, it will listen for requests from the server on port 36001 and will communicate via TCP on port 36002.

> pbs_server -p 36000 -M 36001 -R 36002 -t create

> pbs_mom -S 36000 -M 36001 -R 36002

Afterward, when using a client command to make a batch request it is necessary to specify the server name and server port (36002):

> pbsnodes -a -s node01:36000

> qsub -q @node01:36000 /tmp/script.pbs

© 2017 Adaptive Computing