HP-UX Workload Manager User's Guide

Example configuration files
enabling_event.wlm
Chapter 9290
# Purpose:
# Demonstrate the use of HP-UX WLM to enable a service-level objective
# (SLO) when a certain event occurs.
#
# Dependencies:
# This example was designed to run with version HP-UX WLM A.01.02
# or later.
#
#
# prm structure
#
# See wlmconf(4) for complete HP-UX WLM configuration information.
#
# Define workload groups in the prm structure. Individual users are
# assigned to groups in this structure as well.
#
# In this example configuration, the user backup_meister can execute
# applications in only the Backups group.
#
prm {
groups = Backups : 3;
users = backup_meister: Backups;
}
#
# slo structure
#
# The following slo structure is enabled and disabled based on the
# value of the metric backup_running. If backup_running’s value is
# zero then the SLO is disabled, and any application running in the
# group Backups will get only 1% of the CPU resources. When the
# value is nonzero (for example, 1) the SLO is enabled and the groups
# within the Backups group get a fixed allocation of 60% of the CPU
# resources on the system.
#
slo backup_processing {
pri = 1;
cpushares = 60 total;
entity = PRM group Backups;
condition = metric backup_running;
}