TORQUE Resource Manager > Appendices > Appendix L: TORQUE Quick Start Guide

Appendix L: TORQUE Quick Start Guide

Initial Installation

TORQUE is now hosted at https://github.com under the adaptivecomputing organization. To download source, you will need to use the git utility. For example: 

[root]# git clone https://github.com/adaptivecomputing.com/torque.git -b 5.1.0 5.1.0

To download a different version, replace each 5.1.0 with the desired version. After downloading a copy of the repository, you can list the current branches by typing git branch -a from within the directory of the branch you cloned.

If you're checking source out from git, read the README.building-40 file in the repository.

Extract and build the distribution on the machine that will act as the "TORQUE server" - the machine that will monitor and control all compute nodes by running the pbs_server daemon. See the example below:

> tar -xzvf torque.tar.gz

> cd torque

> ./configure

> make

> make install

OSX 10.4 users need to change the #define __TDARWIN in src/include/pbs_config.h to #define __TDARWIN_8.

After installation, verify you have PATH environment variables configured for /usr/local/bin/ and /usr/local/sbin/. Client commands are installed to /usr/local/bin and server binaries are installed to /usr/local/sbin.

In this document, TORQUE_HOME corresponds to where TORQUE stores its configuration files. The default is /var/spool/torque.

Initialize/Configure TORQUE on the Server (pbs_server)

Install TORQUE on the Compute Nodes

To configure a compute node do the following on each machine (see page 19, Section 3.2.1 of PBS Administrator's Manual for full details):

Configure TORQUE on the Compute Nodes

Configure Data Management on the Compute Nodes

Data management allows jobs' data to be staged in/out or to and from the server and compute nodes.

Update TORQUE Server Configuration

On the TORQUE server, append the list of newly configured compute nodes to the TORQUE_HOME/server_priv/nodes file:

server_priv/nodes

 

computenode001.cluster.org

computenode002.cluster.org

computenode003.cluster.org

Start the pbs_mom Daemons on Compute Nodes

Run the trqauthd daemon to run client commands (see Configuring trqauthd for Client Commands). This enables running client commands.

Verify Correct TORQUE Installation

The pbs_server daemon was started on the TORQUE server when the torque.setup file was executed or when it was manually configured. It must now be restarted so it can reload the updated configuration changes.

# shutdown server

> qterm # shutdown server

 

# start server

> pbs_server

 

# verify all queues are properly configured

> qstat -q

 

# view additional server configuration

> qmgr -c 'p s'

 

# verify all nodes are correctly reporting

> pbsnodes -a

 

# submit a basic job

>echo "sleep 30" | qsub

 

# verify jobs display

> qstat

At this point, the job will not start because there is no scheduler running. The scheduler is enabled in the next step below.

Enable the Scheduler

Selecting the cluster scheduler is an important decision and significantly affects cluster utilization, responsiveness, availability, and intelligence. The default TORQUE scheduler, pbs_sched, is very basic and will provide poor utilization of your cluster's resources. Other options, such as Maui Scheduler or Moab Workload Manager are highly recommended. If using Maui/Moab, see Moab-TORQUE Integration Guide. If using pbs_sched, start this daemon now.

If you are installing ClusterSuite, TORQUE and Moab were configured at installation for interoperability and no further action is required.

Startup/Shutdown Service Script for TORQUE/Moab (OPTIONAL)

Optional startup/shutdown service scripts are provided as an example of how to run TORQUE as an OS service that starts at bootup. The scripts are located in the contrib/init.d/ directory of the TORQUE tarball you downloaded. In order to use the script you must:

Related Topics 

© 2015 Adaptive Computing