![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||
Chapter 2Configuring Queues and Queue CalendarsThis chapter provides background information about configuring queues and queue calendars. It also includes instructions for how to configure them. The following is a list of specific tasks for which instructions are included in this chapter. Configuring QueuesQueues are containers for different categories of jobs. Queues provide the corresponding resources for concurrent execution of multiple jobs that belong to the same category. In N1 Grid Engine 6, a queue can be associated with one host or with multiple hosts. Because queues can extend across multiple hosts, they are called cluster queues. Cluster queues enable you to manage a cluster of execution hosts by means of a single cluster queue configuration. Each host that is associated with a cluster queue receives an instance of that cluster queue, which resides on that host. This guide refers to these instances as queue instances. Within any cluster queue, you can configure each queue instance separately. By configuring individual queue instances, you can manage a heterogeneous cluster of execution hosts by means of a single cluster queue configuration. When you modify a cluster queue, all of its queue instances are modified simultaneously. Within a single cluster queue, you can specify differences in the configuration of queue instances. Consequently, a typical setup might have only a few cluster queues, and the queue instances controlled by those cluster queues remain largely in the background. Note - The distinction between cluster queues and queue instances is important. For example, jobs always run in queue instances, not in cluster queues. When you configure a cluster queue, you can associate any combination of the following host objects with the cluster queue:
A host group is a group of hosts that can be treated collectively as identical. Host groups enable you to manage multiple hosts by means of a single host group configuration. For more information about host groups, see Configuring Host Groups With QMON. When you associate individual hosts with a cluster queue, the name of the resulting queue instance on each host combines the cluster queue name with the host name. The cluster queue name and the host name are separated by an @ sign. For example, if you associate the host myexechost with the cluster queue myqueue, the name of the queue instance on myexechost is myqueue@myexechost. When you associate a host group with a cluster queue, you create what is known as a queue domain. Queue domains enable you to manage groups of queue instances that are part of the same cluster queue and whose assigned hosts are part of the same host group. A queue domain name combines a cluster queue name with a host group name, separated by an @ sign. For example, if you associate the host group myhostgroup with the cluster queue myqueue, the name of the queue domain is myqueue@@myhostgroup. Note - Queue domain names always include two @ signs, because all host group names begin with an @ sign.. Jobs do not wait in queue instances. Jobs start running immediately as soon as they are dispatched. The scheduler's list of pending jobs is the only waiting area for jobs. Configuring queues registers the queue attributes with sge_qmaster. As soon as queues are configured, they are instantly visibly to the whole cluster and to all users on all hosts belonging to the grid engine system. For further details, see the queue_conf(5) man page. Configuring Queues With QMONOn the QMON Main Control window, click the Queue Control button. The Cluster Queues dialog box appears. ![]() The Cluster Queues dialog box and its facilities for monitoring and manipulating the status of cluster queues and queue instances are described in "Monitoring and Controlling Queues With QMON" in N1 Grid Engine 6 User's Guide. To add a new cluster queue, click Add. To modify an existing cluster queue, select it from the Cluster Queue list, and then click Modify. The Clone button enables you to import all parameters of an existing cluster queue. You select the queue you want to clone from a list of existing queues. When you click Add, the Queue Configuration - Add dialog box appears. When you click Modify, the Modify queue-name dialog box appears. When the Queue Configuration dialog box appears for the first time, it displays the General Configuration tab. Figure 2-1 Queue Configuration- General Configuration Tab ![]() If you are modifying an existing queue, the name of the queue is displayed in the Queue Name field. The hosts where the queue instances reside are displayed in the Hostlist field. If you are adding a new cluster queue, you must specify a queue name and the names of the hosts on which the queue instances are to reside. In the Hostlist field, you can specify the names of individual hosts. You can also specify the names of previously defined host groups. Queue instances of this cluster queue will reside on all individual hosts and on all members of the host groups you specify, including all members of any host subgroups. For more information about host groups, see Configuring Host Groups With QMON. The following 11 tabs for specifying parameter sets are available to define a queue:
To set default parameters for the cluster queue, select @/ in the Attributes for Host/Hostgroup list, and then click the tab containing the parameters that you want to set. Default parameters are set for all queue instances on all hosts listed under Hostlist. You can override the default parameter values on a host or a host group that you specify. To set override parameters for a host or a host group, first select the name from the Attributes for Host/Hostgroup list. Then click the tab containing the parameters that you want to set. The values of the parameters that you set override the cluster queue's default parameters on the selected host or host group. To set a host-specific parameter, you must first enable the parameter for configuration. Click the lock icon at the left of the parameter you want to set, and then change the parameter's value. The Refresh button loads the settings of other objects that were modified while the Queue Configuration dialog box was open. Click OK to register all queue configuration changes with sge_qmaster and close the dialog box. Click Cancel to close the dialog box without saving your changes. | ||
| ||
![]() |