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:
./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.
./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.
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, communicate with the MOMs on port 35001, and communicate via RPP on port 35002. The first TORQUE MOM will try to connect to the server on port 35000, it will listen for requests from the server on port 35001 and will communicate via RPP on port 35002. (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 -R 35002 -t create > pbs_mom -S 35000 -M 35001 -R 35002 |
Afterwards, when using a client command to make a batch request it is necessary to specify the servername and serverport (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 |
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 36002, and communicate via RPP 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 RPP 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 servername and serverport (36002):
> pbsnodes -a -s node01:36000 > qsub -q @node01:36000 /tmp/script.pbs |
© 2012 Adaptive Computing