(Click to open topic with navigation)
This topic contains instructions on how to install and start TORQUE.
In this topic:
Supported Operating Systems
CentOS 5.9, Red Hat 5.9 and Scientific Linux 5.9 are supported, largely to continue support for clusters where the compute nodes operating systems cannot be upgraded. We recommend that the TORQUE head node run on the supported operating systems listed above.
Software Requirements
If you intend to use TORQUE 5.1.0 with Moab Workload Manager, you must run Moab version 8.1.0 or 8.0.x. TORQUE 5.1.0 will not work with versions earlier than Moab 8.0.
If you build TORQUE from source (i.e. clone from github), the following additional software is required:
If using a firewall, open necessary ports.
TORQUE requires certain ports to be open for essential communication:
To open ports in your firewall:
[root]# iptables-save > /tmp/iptables.mod [root]# vi /tmp/iptables.mod # Add the following lines immediately *before* the line matching # "-A INPUT -j REJECT --reject-with icmp-host-prohibited" # Needed on the TORQUE server for client and MOM communication -A INPUT -p tcp --dport 15001 -j ACCEPT # Needed on the TORQUE MOM for server and MOM communication -A INPUT -p tcp --dport 15002 -j ACCEPT -A INPUT -p tcp --dport 15003 -j ACCEPT [root]# iptables-restore < /tmp/iptables.mod [root]# service iptables save
[root]# vi /etc/sysconfig/SuSEfirewall2 # Add the following ports to the FW_SERVICES_EXT_TCP parameter as required # Needed on the TORQUE server for client and MOM communication FW_SERVICES_EXT_TCP="15001" # Needed on the TORQUE MOM for server and MOM communication FW_SERVICES_EXT_TCP="15002 15003" [root]# service SuSEfirewall2_setup restart
For more information on how to configure the ports that TORQUE uses for communication, see Configuring Ports.
Dependencies and Packages Installation
[root]# yum install libtool openssl-devel libxml2-devel boost-devel gcc gcc-c++
[root]# zypper install libopenssl-devel libtool libxml2-devel boost-devel gcc gcc-c++ make gmake
[root]# yum install openssl-devel libtool-devel libxml2-devel gcc gcc-c++ wget
Use these instructions for installing libtool:
[root]# cd /tmp [root]# wget http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz [root]# tar -xzvf libtool-2.4.2.tar.gz [root]# cd libtool-2.4.2 [root]# ./configure --prefix=/usr [root]# make [root]# make install
TORQUE requires Boost version 1.36.0 or greater. The boost-devel package provided with RHEL 5, CentOS 5, and Scientific Linux 5 is older than this requirement. A new option, --with-boost-path has been added to configure (see Customizing the Install in the TORQUE Administrator Guide for more information). This allows you to point TORQUE to a specific version of boost during make. One way to compile TORQUE without installing Boost is to simply download the Boost version you plan to use from: http://www.boost.org/users/history/. Next, untar Boost—you do not need to build it or install it. When you run TORQUE configure, use the --with-boost-path option pointed to the extracted Boost directory.
[user]$ su -
If git is not installed:
# RHEL, CentOS, Scientific Linux: [root]# yum install git # SLES: [root]# zipper install git
[root]# git clone https://github.com/adaptivecomputing/torque.git -b <version> <version> [root]# cd <version> [root]# ./autogen.sh
[root]# yum install wget [root]# wget http://www.adaptivecomputing.com/download/torque/torque-<version>.tar.gz -O torque-<version>.tar.gz [root]# tar -xzvf torque-<version>.tar.gz [root]# cd torque-<version>/
[root]# ./configure [root]# make [root]# make install
For information on what options are available to customize the ./configure command, see Customizing the Install.
# RHEL, CentOS, Scientific Linux: [root]# cp contrib/init.d/trqauthd /etc/init.d/ [root]# chkconfig --add trqauthd [root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf [root]# ldconfig [root]# service trqauthd start
# SLES: [root]# cp contrib/init.d/suse.trqauthd /etc/init.d/trqauthd [root]# chkconfig --add trqauthd [root]# echo /usr/local/lib > /etc/ld.so.conf.d/torque.conf [root]# ldconfig [root]# service trqauthd start
[root]# echo <pbs_server's_hostname> > /var/spool/torque/server_name
[root]# export PATH=/usr/local/bin/:/usr/local/sbin/:$PATH
[root]# ./torque.setup root
The make packages command can be used to create self-extracting packages that can be copied and executed on your nodes. For information on creating packages and deploying them, see Compute Nodes.
[root]# cp contrib/init.d/pbs_server /etc/init.d [root]# chkconfig --add pbs_server [root]# service pbs_server restart
[root]# cp contrib/init.d/suse.pbs_server /etc/init.d/pbs_server [root]# chkconfig --add pbs_server [root]# service pbs_server restart
There are several methods to get the following inti.d scripts on to each node. The following instructions assume the entire contents of contrib/init.d in the TORQUE git repository or source tarball are copied(scp)/cloned to the compute node.
These options can be added to the self-extracting packages.
[root]# cp contrib/init.d/pbs_mom /etc/init.d [root]# chkconfig --add pbs_mom [root]# service pbs_mom start
[root]# cp contrib/init.d/suse.pbs_mom /etc/init.d/pbs_mom [root]# chkconfig --add pbs_mom [root]# service pbs_mom start
Related Topics