02.12.2012 Views

OpenVMS Cluster Systems - OpenVMS Systems - HP

OpenVMS Cluster Systems - OpenVMS Systems - HP

OpenVMS Cluster Systems - OpenVMS Systems - HP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setting Up and Managing <strong>Cluster</strong> Queues<br />

7.9 Setting Up Execution Batch Queues<br />

7.9.2 Batch Command Format<br />

You create a batch queue with a unique name by specifying the DCL command<br />

INITIALIZE/QUEUE/BATCH in the following format:<br />

INITIALIZE/QUEUE/BATCH/ON=node::[/START][/NAME_OF_MANAGER=name-of-manager] queuename<br />

Qualifier Description<br />

/ON Specifies the computer on which the batch queue runs.<br />

/START Starts the queue.<br />

/NAME_OF_MANAGER Specifies the name of the queue manager if you are running<br />

multiple queue managers.<br />

7.9.3 Autostart Command Format<br />

You can initialize and start an autostart batch queue by specifying the DCL<br />

command INITIALIZE/QUEUE/BATCH. Use the following command format:<br />

INITIALIZE/QUEUE/BATCH/AUTOSTART_ON=node::queue-name<br />

When you use the /AUTOSTART_ON qualifier, you must initially activate<br />

the queue for autostart, either by specifying the /START qualifier with the<br />

INITIALIZE/QUEUE command or by entering a START/QUEUE command.<br />

However, the queue cannot begin processing jobs until the ENABLE AUTOSTART<br />

/QUEUES command is entered for a node on which the queue can run.<br />

Rule: Generic queues cannot be autostart queues. Note that you cannot specify<br />

both /ON and /AUTOSTART_ON.<br />

7.9.4 Examples<br />

The following commands make the local batch queue assignments for JUPITR,<br />

SATURN, and URANUS shown in Figure 7–4:<br />

$ INITIALIZE/QUEUE/BATCH/ON=JUPITR::/START/NAME_OF_MANAGER=BATCH_QUEUE JUPITR_BATCH<br />

$ INITIALIZE/QUEUE/BATCH/ON=SATURN::/START/NAME_OF_MANAGER=BATCH_QUEUE SATURN_BATCH<br />

$ INITIALIZE/QUEUE/BATCH/ON=URANUS::/START/NAME_OF_MANAGER=BATCH_QUEUE URANUS_BATCH<br />

Because batch jobs on each <strong>OpenVMS</strong> <strong>Cluster</strong> computer are queued to<br />

SYS$BATCH by default, you should consider defining a logical name to establish<br />

this queue as a clusterwide generic batch queue that distributes batch job<br />

processing throughout the cluster (see Example 7–2). Note, however, that you<br />

should do this only if you have a common-environment cluster.<br />

7.10 Setting Up <strong>Cluster</strong>wide Generic Batch Queues<br />

In an <strong>OpenVMS</strong> <strong>Cluster</strong> system, you can distribute batch processing among<br />

computers to balance the use of processing resources. You can achieve this<br />

workload distribution by assigning local batch queues to one or more clusterwide<br />

generic batch queues. These generic batch queues control batch processing across<br />

the cluster by placing batch jobs in assigned batch queues that are available. You<br />

can create a clusterwide generic batch queue as shown in Example 7–2.<br />

A clusterwide generic batch queue needs to be initialized and started only<br />

once. The most efficient way to perform these operations is to create a common<br />

command procedure that is executed by each <strong>OpenVMS</strong> <strong>Cluster</strong> computer (see<br />

Example 7–2).<br />

7–10 Setting Up and Managing <strong>Cluster</strong> Queues

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!