1.0 Installation and configuration > Initializing/Configuring TORQUE on the server (pbs_server)

1.2 Initializing/Configuring TORQUE on the server (pbs_server)

The directory TORQUE_HOME/server_priv/ contains configuration and other information needed for pbs_server. One of the files in this directory is serverdb. The serverdb file contains configuration parameters for pbs_server and its queues. For pbs_server to run, serverdb must be initialized.

You can initialize serverdb in two different ways, but the recommended way is to use the ./torque.setup script:

./torque.setup

The torque.setup script uses pbs_server -t create to initialize serverdb and then adds a user as a manager and operator of TORQUE and other commonly used attributes. The syntax is as follows:

/torque.setup username

> ./torque.setup ken

> qmgr -c 'p s'

 

#

# Create queues and set their attributes.

#

#

# Create and define queue batch

#

create queue batch set queue batch queue_type = Execution

set queue batch resources_default.nodes = 1

set queue batch resources_default.walltime = 01:00:00

set queue batch enabled = True

set queue batch started = True

#

# Set server attributes.

#

set server scheduling = True

set server acl_hosts = kmn

set server managers = ken@kmn

set server operators = ken@kmn

set server default_queue = batch

set server log_events = 511

set server mail_from = adm

set server scheduler_iteration = 600

set server node_check_rate = 150

set server tcp_timeout = 6

set server mom_job_sync = True

set server keep_completed = 300

pbs_server -t create

The -t create option instructs pbs_server to create the serverdb file and initialize it with a minimum configuration to run pbs_server. To see the configuration, use qmgr:

> pbs_server -t create

> qmgr -c 'p s'

 

#

# Set server attributes.

#

set server acl_hosts = kmn

set server log_events = 511

set server mail_from = adm

set server scheduler_iteration = 600

set server node_check_rate = 150

set server tcp_timeout = 6

A single queue named batch and a few needed server attributes are created.

This section contains these topics:

Related topics