(Click to open topic with navigation)
If you intend to use Torque Resource Manager 6.0.2 with Moab Workload Manager, you must run Moab version 8.0 or later. However, some Torque 6.0 functionality requires Moab 9.0 or later.
This topic contains instructions on how to install and start Torque Resource Manager (Torque).
For Cray systems, Adaptive Computing recommends that you install Moab and Torque Servers (head nodes) on commodity hardware (not on Cray compute/service/login nodes).
However, you must install the Torque pbs_mom daemon and Torque client commands on Cray login and "mom" service nodes since the pbs_mom must run on a Cray service node within the Cray system so it has access to the Cray ALPS subsystem.
See Installation Notes for Moab and Torque for Cray in the Moab Workload Manager Administrator Guide for instructions on installing Moab and Torque on a non-Cray server.
In this topic:
In this section:
Torque requires certain ports to be open for essential communication.
For more information on how to configure the ports that Torque uses for communication, see Configuring Ports
If you have a firewall enabled, do the following:
[root]# firewall-cmd --add-port=15001/tcp --permanent [root]# firewall-cmd --reload
[root]# firewall-cmd --add-port=15002-15003/tcp --permanent [root]# firewall-cmd --reload
On the Torque Server Host, confirm your host (with the correct IP address) is in your /etc/hosts file. To verify that the hostname resolves correctly, make sure that hostname and hostname -f report the correct name for the host.
2.2.2 Install Dependencies, Packages, or Clients
On the Torque Server Host, use the following commands to install the libxml2-devel, openssl-devel, and boost-devel packages.
[root]# yum install libtool openssl-devel libxml2-devel boost-devel gcc gcc-c++
You must complete the prerequisite tasks and the tasks to install the dependencies, packages, or clients before installing Torque Server. See 2.2.1 Prerequisites and 2.2.2 Install Dependencies, Packages, or Clients.
On the Torque Server Host, do the following:
If git is not installed:
[root]# yum install git
[root]# git clone https://github.com/adaptivecomputing/torque.git -b 6.0.2 6.0.2 [root]# cd 6.0.2 [root]# ./autogen.sh
[root]# yum install wget [root]# wget http://www.adaptivecomputing.com/download/torque/torque-6.0.2-<filename>.tar.gz -O torque-6.0.2.tar.gz [root]# tar -xzvf torque-6.0.2.tar.gz [root]# cd torque-6.0.2/
[root]# ./configure [root]# make [root]# make install
If tk-devel and tcl-devel packages are installed on your host, you must also use the ‑‑disable‑gui option when executing configure.
See Customizing the Install
[root]# echo <torque_server_hostname> > /var/spool/torque/server_name
[root]# cp contrib/systemd/trqauthd.service /usr/lib/systemd/system/ [root]# systemctl enable trqauthd.service [root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf [root]# ldconfig [root]# systemctl start trqauthd.service
[root]# export PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
[root]# ./torque.setup root
[root]# qterm [root]# cp contrib/systemd/pbs_server.service /usr/lib/systemd/system/ [root]# systemctl enable pbs_server.service [root]# systemctl start pbs_server.service
In most installations, you will install a Torque MOM on each of your compute nodes.
See Specifying Compute Nodes or Configuring Torque on Compute Nodes
Do the following:
[root]# make packages Building ./torque-package-clients-linux-x86_64.sh ... Building ./torque-package-mom-linux-x86_64.sh ... Building ./torque-package-server-linux-x86_64.sh ... Building ./torque-package-gui-linux-x86_64.sh ... Building ./torque-package-devel-linux-x86_64.sh ... Done. The package files are self-extracting packages that can be copied and executed on your production machines. Use --help for options.
Adaptive Computing recommends that you use a remote shell, such as SSH, to install packages on remote systems. Set up shared SSH keys if you do not want to supply a password for each Torque MOM Host.
The only required package for the compute node is mom-linux. Additional packages are recommended so you can use client commands and submit jobs from compute nodes.
[root]# scp torque-package-mom-linux-x86_64.sh <mom-node>: [root]# scp torque-package-clients-linux-x86_64.sh <mom-node>:
[root]# scp contrib/systemd/pbs_mom.service <mom-node>:/usr/lib/systemd/system/
Not all sites see an inherited ulimit but those that do can change the ulimit in the pbs_mom init script. The pbs_mom init script is responsible for starting and stopping the pbs_mom process.
[root]# ssh root@<mom-node>
[root]# ./torque-package-mom-linux-x86_64.sh --install
[root]# ./torque-package-clients-linux-x86_64.sh --install
[root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf
[root]# ldconfig
[root]# systemctl enable pbs_mom.service [root]# systemctl start pbs_mom.service
If you want to have the Torque client commands installed on hosts other than the Torque Server Host (such as the compute nodes or separate login nodes), do the following:
Adaptive Computing recommends that you use a remote shell, such as SSH, to install packages on remote systems. Set up shared SSH keys if you do not want to supply a password for each Torque MOM Host.
[root]# scp torque-package-clients-linux-x86_64.sh <torque-client-host>:
[root]# scp contrib/systemd/trqauthd.service <torque-client-host>:/usr/lib/systemd/system/
Many of these steps can be done from the Torque server from a remote shell, such as SSH. Set up shared SSH keys if you do not want to supply a password for each Torque Client Host.
[root]# ./torque-package-clients-linux-x86_64.sh --install [root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf [root]# ldconfig
[root]# systemctl enable trqauthd.service [root]# systemctl start trqauthd.service
2.2.6 Configure Data Management
When a batch job completes, stdout and stderr files are generated and placed in the spool directory on the master Torque MOM Host for the job instead of the submit host. You can configure the Torque batch environment to copy the stdout and stderr files back to the submit host. See Configuring Data Management
Related Topics