Using HP-UX Workload Manager: A quick reference

26
2. Define the SLO.
The SLO in your WLM configuration file must specify a priority (pri) for the SLO, the workload
group to which the SLO applies (entity), and a usage goal statement.
The following slo structure for the sales group shows a usage goal statement.
slo usage_example {
pri = 1;
mincpu = 20;
maxcpu = 60;
entity = PRM group sales;
goal = usage _CPU 80 90;
}
With usage goals, WLM adjusts the amount of CPU resources it grants a workload group so that
the group uses between 50% and 75% of its allocated share of CPU resources. However, in the
previous example, with the values of 80 and 90 in the goal statement, WLM would try to
increase or decrease the workload group’s CPU allocation until the group is using between 80%
and 90% of the allocated share of CPU resources. In attempting to meet the usage goal, the new
WLM CPU allocations to the workload group will typically be within the mincpu/maxcpu range.
3. Set your interval to 5.
With a usage goal, you should typically set wlm_interval to 5.
tune {
wlm_interval = 5;
}
4. Activate the configuration:
# /opt/wlm/bin/wlmd -a config.wlm
where config.wlm is the name of your configuration file.