Jump to content English
hp.com home
HP Global Workload Manager (gWLM)  |  Edit Policies

Policies tab
Edit Policies

  HP Global Workload Manager (gWLM)

»gWLM concepts / overview
»Getting the most out of gWLM
»Getting Started - gWLM Home
»Manage New Systems (Create SRDs)
»Manage Workloads
»Unmanage Workloads
»Edit SRDs
Edit Policies
»Edit Workloads
»Edit Associations
»Configure Events
»View Summaries
»View Real-time Reports
»View Historical Reports
»Set Up Read-only Monitoring
»Web browser tips
»Tab: Shared Resource Domains
Tab: Policies
»Tab: Workloads
»Tab: Associations
»Glossary
Content starts here

The Policies tab allows you to:

» Create a new policy
» Edit a policy
» Delete a policy

Change policy-workload associations using the Associations tab.

In addition to explaining the tasks above, this help page provides information on:

» Supported policy types
» Combining the different policy types
» Choosing a policy type

The Policies tab provides a table that includes the following columns:

ColumnDescription
PolicyName of a defined policy
TypeThe type of policy: Fixed, Utilization, OwnBorrow, or Custom, which are described in the section Supported policy types
Associated WorkloadsThe workloads whose resource allocation is governed by the given policy

Re-sort the rows by selecting the column heading that you would like to sort by.

Supported policy types

gWLM supports the policy types described in the table below. For information on which type to use, see Choosing a policy type.

Policy typeDescription
Fixed policy

A fixed policy guarantees that a workload's compartment has a fixed (constant) amount of CPU resources.

Fixed policies do not have a priority you can set. gWLM satisfies these policies before attempting to satisfy any other type of policies.

Utilization policy

This type of policy has a target based on utilization. With a CPU utilization policy, gWLM attempts to keep a workload's CPU utilization below the target by adding CPU resources when the workload is using too much of its current CPU allocation. For example, assume a workload has a utilization policy with a target of 80% and an allocation of 5 CPUs. If the workload is consuming 4.5 CPUs, its utilization percentage is 4.5/5, or 90%. gWLM would attempt to allocate additional CPU resources to the workload's compartment to meet the target. An allocation of 6 CPUs would result in a utilization percentage of 4.5/6, or 75%, meeting the target.

You can set a priority for utilization policies to ensure gWLM attempts to satisfy the policies in a particular order.

OwnBorrow policy

An OwnBorrow policy allows you to set the:

  • Amount of CPU resources a workload's compartment owns

  • Minimum amount of CPU resources a compartment must have (after lending resources to other workloads)

  • Maximum amount of CPU resources a compartment can have (after borrowing resources from other workloads)

A compartment is guaranteed its owned CPUs when needed. When a workload is not busy, gWLM may lend CPUs from that workload's compartment--down to its minimum--to help workloads that are busy. (If a compartment has lent out CPUs and that compartment's workload becomes busy, the compartment re-acquires those lent-out CPUs immediately.) Also, a compartment with a busy workload can borrow CPUs--up to its maximum--assuming CPUs are available for borrowing.

OwnBorrow policies do not have a priority you can set.

Custom policy

A custom policy allows you to provide your own metric. gWLM then manages an associated workload, adjusting allocation as needed, based on how the value of its metric compares to a target you specify. (You update values for the metric using the gwlmsend command in the HP-UX or Linux instance where the workload is running.)

The Metric response can be direct or inverse. With a direct response, as gWLM increases the CPU allocation, the metric values increase. An example of a metric that has a direct response is transactions per second. With an inverse response, when gWLM increases the CPU allocation, the metric values decrease. For example, response time is a metric that has an inverse response.

You can set a priority for custom policies to ensure gWLM attempts to satisfy the policies in a particular order.

Combining the different policy types

Each workload in an SRD must have a policy. You can assign different policy types to the workloads in an SRD as long as the types are compatible. The following table indicates the compatible combinations.

Policy typeFixedUtilizationOwnBorrowCustom
FixedYesYesYesYes
UtilizationYesYes--Yes
OwnBorrowYes--Yes--
CustomYesYes--Yes

Choosing a policy type

How do you decide which policy type to use? The table below answers this question for several common use cases. The section following the table helps you decide between using an OwnBorrow policy or a utilization policy.

If...Use the following type of policy...

You want gWLM to allocate a constant amount of CPU to a workload

Fixed

You have your own metric by which you want gWLM to manage a workload

Custom

IT acts as a service provider to business units

OwnBorrow

This policy type allows you to set an owned amount of resources, while also giving you control over how workloads borrow and lend resources.

gWLM provides a "topborrowers" report and a "resourceaudit" report to help you manage your data center using this model. For more information, see the gwlmreport(1M) man page.

You have static vpars but you want to move to a model where CPUs migrate between vpars

OwnBorrow

For each vpar, set its number of owned CPUs to its static number of CPUs. The vpar is then guaranteed those owned CPUs when needed.

You have npars but you want to move to a model where CPUs migrate between npars

OwnBorrow

Install the HP product Instant Capacity on each npar. (This software allows gWLM to simulate CPU movement among the npars.)

For each npar, set its number of owned CPUs to the number of CPUs you want to guarantee the npar has when needed.

You want to tap into a pool of resources taking or giving CPU resources as needed--with no guaranteed access to resources beyond a minimum request

Utilization

OwnBorrow policies guarantee a certain amount of CPU resources are available to your workload. This amount is based on the owned CPU resources specified in the policy. The workload can lend unneeded resources to other workloads--and get those resources back as soon as they are needed again.

With utilization policies, gWLM guarantees CPU to the workload based on the minimum CPU value specified in the policy. These resources cannot be shared with other workloads.

Create a new policy

A single policy can be used for multiple workloads, reducing the number of policies you need to create.

To create a new policy:

  1. Select the following menu item if you have not already done so:

    Optimize Global Workload Manager (gWLM) Edit Policies

  2. Select the [New] button.

  3. Scroll down to see the new section "New Policy."

  4. Enter a name for the policy. Legal characters for the name are A-Z, a-z, 0-9, the dash character ( - ), the period ( . ), and the underscore character ( _ ); the first character must be a letter.

  5. Select the policy type: Fixed, Utilization, OwnBorrow, or Custom.

  6. Fill out any additional fields for the policy type you chose.

    For OwnBorrow policies: To ensure CPU allocations behave as expected, the sum of the CPU resources owned cannot exceed the number of CPUs in the SRD. (However, if the sum is less than the number of CPUs in the SRD, the excess is distributed to all compartments in proportion to the amounts owned. Thus, workloads will routinely get more than they are due.)

    The PolicyMin and PolicyMax values are simply requests the policy makes for its associated workloads. A policy's request for a workload may not be satisfied due to one or more of the following conditions:

    • Resources being completely consumed by workloads with higher priority policies

    • A workload's compartment being too small for the PolicyMax to be met (For example, consider a pset that can have up to three CPUs. Even with a PolicyMax value of five, a request greater than three CPUs will never be met.)

    • The request exceeds the PolicyMax value, so the PolicyMax value is used as the request instead.

    For information on how the following items affect resource allocation:

    • Weight value for utilization policies and custom policies

    • Owned value for OwnBorrow policies (which serves as the weight value)

    see the weight definition.

  7. Select the [More Settings] button if you would like to fine-tune your policy settings further.

    For utilization policies and custom policies, you can set a priority to ensure gWLM attempts to satisfy the policies in a particular order. To set a priority, after selecting the [More Settings] button, select the General tab to see the Priority field. The highest priority is 1. Lower priorities are 2, 3, and so on--up to and including 1000.

  8. Select the [OK] button when ready.

Edit a policy

Whenever you edit a policy that is used by multiple workloads, the changed policy is automatically used by those workloads.

To edit a policy:

  1. Select the following menu item if you have not already done so:

    Optimize Global Workload Manager (gWLM) Edit Policies

  2. Select the policy you want to edit.

  3. Select the [Edit] button.

  4. Scroll down to see the new section "Edit Policy."

  5. Make your desired changes.

  6. Select the [OK] button when ready.

Delete a policy

To delete a policy:

  1. Select the following menu item if you have not already done so:

    Optimize Global Workload Manager (gWLM) Edit Policies

  2. Select the policy you want to delete.

  3. Select the [Delete] button.

  4. Confirm the deletion when prompted.