- 1 Sun Grid Engine Overview
- 2 What Is Grid Computing?
- 3 Managing Workload by Managing Resources and Policies
- 4 How the System Operates
- 4.1 Grid Engine System Operations
- 4.2 Matching Resources to Requests
- 4.3 Jobs and Queues
- 4.4 Usage Policies
- 5 Grid Engine System Components
- 5.1 Hosts
- 5.2 Daemons
- 5.3 Queues
- 5.4 Client Commands
- 6 Interacting With the Sun Grid Engine Software
|
Sun Grid Engine Information Center Sun Grid Engine OverviewSun Grid Engine provides policy-based workload management and dynamic provisioning of application workloads. The Sun Grid Engine software enables you to apply resource management strategies to distribute jobs across a grid. A Grid Engine master can manage a grid of up to ten thousand hosts, meeting the scalability needs of even the largest grids. If you are not yet familiar with the basic concepts and functions of the Sun Grid Engine product, you should review some of the following information before you read further: For more information, choose from the following topics:
For more information about patch requirements and patch matrix for Sun Grid Engine 6.2 Update 1 packages, see Patch Requirements and Patch Matrix for Sun Grid Engine 6.2 Update 1 Packages.
|
|
Sun Grid Engine Information Center What Is Grid Computing?A grid is a collection of computing resources that perform tasks. In its simplest form, a grid appears to users as a large system that provides a single point of access to powerful distributed resources. In its more complex form, which is explained later in this section, a grid can provide many access points to users. In all cases, users treat the grid as a single computational resource. Resource management software such as Sun Grid Engine software accepts jobs submitted by users. The software uses resource management policies to schedule jobs to be run on appropriate systems in the grid. Users can submit millions of jobs at a time without being concerned about where the jobs run. No two grids are alike. The three key classes of grids, which scale from single systems to supercomputer-class compute farms that use thousands of processors, are as follows:
The following figure shows the three classes of grids. In the cluster grid, a user's job is handled by only one of the systems within the cluster. However, the user's cluster grid might be part of the more complex campus grid, and the campus grid might be part of the largest global grid. In such cases, the user's job can be handled by any member execution host that is located anywhere in the world.
Sun Grid Engine software provides the power and flexibility required for campus grids. The product is useful for existing cluster grids because it facilitates a smooth transition to creating a campus grid. The Grid Engine system effects this transition by consolidating all existing cluster grids on the campus. In addition, the Grid Engine system is a good start for an enterprise campus that is moving to the grid computing model for the first time. The Grid Engine software orchestrates the delivery of computational power that is based on enterprise resource policies set by the organization's technical and management staff. The Grid Engine system uses these policies to examine the available computational resources within the campus grid. The system gathers these resources and then allocates and delivers resources automatically, optimizing usage across the campus grid. To enable cooperation within the campus grid, project owners who use the grid must do the following:
The Grid Engine software can mediate among the entitlements of many departments and projects that are competing for computational resources. |
|
Sun Grid Engine Information Center Managing Workload by Managing Resources and PoliciesThe Grid Engine system is an advanced resource management tool for heterogeneous distributed computing environments. Workload management is accomplished through managing resources and administering policies. Sites configure the system to maximize usage and throughput, while the system supports varying levels of timeliness and importance. Job deadlines are instances of timeliness. Job priority and user share are instances of importance. The Sun Grid Engine software provides advanced resource management and policy administration for UNIX and Windows environments that are composed of multiple shared resources. The Grid Engine system is superior to standard load management tools with respect to the following major capabilities:
You can submit computationally demanding tasks to the grid for transparent distribution of the associated workload, including batch jobs, interactive jobs, and parallel jobs. For the administrator, the software provides comprehensive tools for monitoring and controlling jobs. The product also supports checkpointing programs. Checkpointing jobs migrate from workstation to workstation without user intervention on load demand. |
|
Sun Grid Engine Information Center How the System OperatesGrid Engine System OperationsThe Grid Engine system does all of the following:
Matching Resources to RequestsAs an analogy, imagine a large "money-center" bank in one of the world's capital cities. In the bank's lobby are dozens of customers waiting to be served. Each customer has different requirements. One customer wants to withdraw a small amount of money from his account. Arriving just after him is another customer, who has an appointment with one of the bank's investment specialists. She wants advice before she undertakes a complicated venture. Another customer in front of the first two customers wants to apply for a large loan, as do the eight customers in front of her. Different customers with different needs require different types of service and different levels of service from the bank. Perhaps the bank on this particular day has many employees who can handle the one customer's simple withdrawal of money from his account. But at the same time the bank has only one or two loan officers available to help the many loan applicants. On another day, the situation might be reversed. The effect is that customers must wait for service unnecessarily. Many of the customers could receive faster service if only their needs were immediately recognized and then matched to available resources. If the Grid Engine system were the bank manager, the service would be organized differently:
Jobs and QueuesIn a Grid Engine system, jobs correspond to bank customers. Jobs wait in a computer holding area instead of a lobby. Queues, which provide services for jobs, correspond to bank employees. As in the case of bank customers, the requirements of each job, such as available memory, execution speed, available software licenses, and similar needs, can be very different. Only certain queues might be able to provide the corresponding service. To continue the analogy, the Grid Engine software arbitrates available resources and job requirements in the following way:
Usage PoliciesThe administrator of a cluster can define high-level usage policies that are customized according to the site. Four usage policies are available:
Policy management automatically controls the use of shared resources in the cluster to best achieve the goals of the administration. High priority jobs are dispatched preferentially. Such jobs receive higher CPU entitlements if the jobs compete for resources with other jobs. The Grid Engine software monitors the progress of all jobs and adjusts their relative priorities correspondingly and with respect to the goals defined in the policies. Using Tickets to Administer PoliciesThe functional, share-based, and override policies are defined through a Grid Engine concept that is called tickets. You might compare tickets to shares of a public company's stock. The more shares of stock that you own, the more important you are to the company. If shareholder A owns twice as many shares as shareholder B, A also has twice the votes of B. Therefore shareholder A is twice as important to the company. Similarly, the more tickets that a job has, the more important the job is. If job A has twice the tickets of job B, job A is entitled to twice the resource usage of job B. Jobs can retrieve tickets from the functional, share-based, and override policies. The total number of tickets, as well as the number retrieved from each ticket policy, often changes over time. The administrator controls the number of tickets that are allocated to each ticket policy in total. Just as ticket allocation does for jobs, this allocation determines the relative importance of the ticket policies among each other. Through the ticket pool that is assigned to particular ticket policies, the Grid Engine software can run in different ways. For example, the software can run in a share-based mode only. Or the software can run in a combination of modes, for example, 90% share-based and 10% functional. Using the Urgency Policy to Assign Job PriorityThe urgency policy can be used in combination with two other job priority specifications:
A job can be assigned an urgency value, which is derived from three sources:
The administrator can separately weight the importance of each of these sources to arrive at a job's overall urgency value. For more information, see Managing Policies. The following figure shows the correlation among policies in a Grid Engine system.
|
|
Sun Grid Engine Information Center Grid Engine System ComponentsHostsFour types of hosts are fundamental to the Grid Engine system:
DaemonsTwo daemons provide the functionality of the Grid Engine system. sge_qmaster - The Master DaemonThe center of the cluster's management and scheduling activities, sge_qmaster maintains tables about hosts, queues, jobs, system load, and user permissions. sge_qmaster also performs scheduling functions and requests actions from sge_execd on the appropriate execution hosts. sge_qmaster makes the following scheduling decisions:
sge_execd - The Execution DaemonThe execution daemon is responsible for the queue instances on its host and for the running of jobs in these queue instances. Periodically, the execution daemon forwards information such as job status or load on its host to sge_qmaster. QueuesA queue is a container for a class of jobs that are allowed to run on one or more hosts concurrently. A queue determines certain job attributes, for example, whether the job can be migrated. Throughout its lifetime, a running job is associated with its queue. Association with a queue affects some of the things that can happen to a job. For example, if a queue is suspended, all jobs associated with that queue are also suspended. Jobs do not need to be submitted directly to a queue. If you submit a job to a specified queue, the job is bound to this queue. As a result, the Grid Engine system daemons are unable to select a better-suited device or a device that has a lighter load. You only need to specify the requirement profile of the job. A profile might include requirements such as memory, operating system, available software, and so forth. The Grid Engine software automatically dispatches the job to a suitable queue and a suitable host with a light execution load. A queue can reside on a single host, or a queue can extend across multiple hosts. For this reason, Grid Engine system queues are also referred to as cluster queues. Cluster queues enable users and administrators to work with a cluster of execution hosts by means of a single queue configuration. Each host that is attached to a cluster queue receives its own queue instance from the cluster queue. Client CommandsThe command-line user interface is a set of ancillary programs (commands) that enable you to do the following tasks:
For a complete list of ancillary programs, see Client Commands. To view detailed information about each command, see the Grid Engine man pages, which are available in your $SGE_ROOT/man directory or on the Open Grid Engine site. |
|
Sun Grid Engine Information Center Interacting With the Sun Grid Engine SoftwareQMON, the Grid Engine System's Graphical User InterfaceYou can use QMON, the graphical user interface (GUI) tool, to accomplish most Grid Engine system tasks. These tasks include submitting jobs, controlling jobs, and gathering important information. The QMON Main Control window is often the starting point for user and administrator functions. Each icon on the Main Control window is a GUI button that you click to start a variety of tasks. To see a button's name, rest the pointer over the button. The button name describes the button function. Launching the QMON Main Control WindowTo launch the QMON Main Control window, from the command line, type qmon. After a message window is displayed, the QMON Main Control window appears. Figure – QMON Main Control Window, DefinedThe following figure shows the QMON Main Control window along with descriptions of each icon. Customizing QMONA specifically designed resource file largely defines the QMON look and feel. Reasonable defaults are compiled in $SGE_ROOT/qmon/Qmon, which also includes a sample resource file. Refer to the comment lines in the sample Qmon file for detailed information on the possible customizations. The cluster administrator can do any of the following:
Ask your administrator if any of these cases are relevant in your environment. In addition, users can configure the following personal preferences:
You can also use the Job Customize and Queue Customize dialog boxes to customize QMON. These dialog boxes are shown in Customizing the Job Control Display and in Filtering Cluster Queues and Queue Instances. In both dialog boxes, users can use the Save button to store the filtering and display definitions to the .qmon_preferences file in their home directories. When QMON is restarted, this file is read, and QMON reactivates the previously defined behavior. Client CommandsThe command-line user interface is a set of ancillary programs (commands) that enable you to do the following tasks:
The Grid Engine system provides the following set of ancillary programs:
Distributed Resource Management Application APIYou can automate Sun Grid Engine functions by writing scripts that run Sun Grid Engine commands and parse the results. However, for more consistent and efficient results, you can use the Distributed Resource Management Application API (DRMAA). For more information about the DRMAA concept and how to use it with the C and Java TM languages, see Automating Grid Engine Functions Through the Distributed Resource Management Application API.
|



