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

Workloads tab
Edit Workloads

  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

A workload is a collection of applications whose performance is to be managed as a single unit. You can base a workload on an npar, a vpar, a pset, or an fss group. gWLM then manages resource allocation for the npar, vpar, pset, or fss group.

The Workloads tab allows you to:

» Create a new workload
» Edit a workload
» Delete a workload

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

ColumnDescription
Workload Name of workload
Associated Policy Policy associated with workload and influencing gWLM's resource allocation to the workload
Applications* The applications that run in the given workload
Users* Users whose processes run in the given workload
Hostname Host on which the workload is running
Shared Resource Domain SRD where the host resides
SRD State Undeployed / Deployed

* Applies only to workloads based on psets or fss groups

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

Create a new workload

This section applies only to workloads based on psets or fss groups. To create workloads based on npars or vpars, use the Manage Workloads wizard.

To create a new workload:

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

    Optimize Global Workload Manager (gWLM) Edit Workloads

  2. Select the [New] button.

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

  4. Enter a name for the new workload. 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. (Optional) Indicate the applications and user processes to go in the workload.

    You can place processes in a workload using one or more of the following methods:

    • User records (which you create with the Users tab to map users to the current workload)

    • Application records (which you create with the Applications tab to map applications to the current workload)

    • gwlmplace command

    The following steps explain how to set up these records. For precedence rules and additional information, see the section Tips for managing psets and fss groups below.

    1. Specify one or more user names for which processes will be automatically moved into this workload.

      1. Enter the name of a user whose processes should run in the workload.

      2. Select the [>>] button to move an entry from the User Name field to the User List.

      3. Repeat the previous two steps for additional users as desired.

    2. (Optional) Specify one or more applications to automatically move into the workload.

      To add an application to the workload:

      1. Select the Applications tab.

      2. Select the [New] button.

      3. Scroll down to see the new fields.

      4. Enter the full path, starting with /, to the application in the Application Pathname field. You can use wildcards ([, ], ?, and *) to specify the filename, but not the directory name.

        For a script that uses a shell or interpreter, specify the full path to the shell/interpreter being used in the script in this field. Then, be sure to specify an entry in the Alternate Name field, discussed in the next step.

      5. Enter, in the Alternate Name field, any alternate names the application takes when running, if you want to place the application in separate workloads based on its alternate names. You can use pattern matching notation to designate a group of similarly named processes.

        For a script that uses a shell or interpreter, enter the name of the script or interpreter--excluding its path.

        Alternate names should match the first non-shell item in the COMMAND column (that is, the command name with no options) of the output from the ps -ef command.

        Alternate names are common for complex programs such as database programs that launch many processes and rename them.

      6. Select the [>>] button to move an entry from the Alternate Name field to the Alternate Name List.

      7. Repeat the previous two steps for additional alternate names as desired.

    3. Select the [OK] button to add the application.

    4. Add more applications to the workload if desired.

      As you add applications, they are listed in the table at the top of the Applications tab.

  6. Select the [OK] button to the right of the Workload Name field to finish defining the new workload.

This section presents various items to be aware of when managing workloads based on psets or fss groups.

Placement of process trees

gWLM's application records and user records move only the indicated process to a workload. To move an entire process tree, use gwlmplace --recurse.

Precedence of placement techniques

As mentioned above, you can place processes in workloads with user records, application records, and the gwlmplace command. gWLM checks that processes are in their appropriate workloads every 30 seconds, based on the following rules of precedence.

For each process:

  1. Has the process been placed using the gwlmplace command?

    Yes: Leave process where it is

    No: Continue to next step

    If you use gwlmplace --recurse to move a process tree, all processes in the tree are considered to have been placed using gwlmplace.

  2. Is there a matching application record?

    Yes: Then assign the process to that workload

    No: Continue to next step

  3. Is there a matching user record?

    Yes: Then assign the process to that workload

    No: Continue to next step

  4. Is the parent of the process assigned to a workload?

    Yes: Then inherit the parent's workload

    No: Continue to next step

  5. Place nonroot processes in the default workload. (gWLM leaves root processes where they are.)

Management of short-lived processes

gWLM polls the system every 30 seconds to determine whether processes are running in their assigned workloads. Consequently, you should not assign short-lived processes to workloads.

Use of the default pset or default fss group

If you let processes run in the default pset or the default fss group, they will be competing against all the other processes that are not explicitly placed in workloads. To ensure appropriate resource allocations for your processes, place them in workloads by specifying user records or application records when defining workloads or by using the gwlmplace command.

Edit a workload

To edit a workload:

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

    Optimize Global Workload Manager (gWLM) Edit Workloads

  2. Select the workload you want to edit.

  3. Select the [Edit] button.

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

  5. Make edits in the Applications tab and Users tab (applies only to workloads that are based on psets or fss groups).

    For information on these tabs, see the Applications tab description or the Users tab description above.

  6. Select the [OK] button to the right of the Workload Name field to finish editing the workload.

Delete a workload

To delete workloads:

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

    Optimize Global Workload Manager (gWLM) Edit Workloads

  2. Select one or more workloads to delete.

  3. Select the [Delete] button.

  4. Confirm the deletion.

If you see the above error message when attempting to delete a workload, your next steps depend on whether the workload's SRD is deployed or undeployed, as explained below.

To delete a workload in an undeployed SRD:

  1. Select the menu item:

    Optimize Global Workload Manager (gWLM) Edit SRDs

  2. Complete the steps to perform one of the following three options:

    • Delete the SRD and its workloads

    • Delete the SRD (without deleting its workloads)

      Then, return to the Edit Workloads window to delete the workload

    • Deploy the SRD then continue with the steps below for a deployed SRD

    For information on completing any of these options, see the online help for the Edit SRDs window.

To delete a workload in a deployed SRD:

  1. Use the gWLM menu item Unmanage Workloads to remove the workload from its SRD

    You cannot unmanage the last workload in a deployed SRD. To stop managing an SRD, undeploy it by selecting the following menu item: Optimize Global Workload Manager (gWLM) Edit SRDs . The same menu item allows you to delete SRDs.

  2. Return to the Edit Workloads window to delete the workload