HP-UX Workload Manager User's Guide
Advanced WLM usage: Using performance metrics
Supplying data to WLM
Appendix H 513
Figure H-4 wlmsend: command-output mode (command | wlmsend metric)
This example of wlmsend’s command-output mode shows how to set up
the WLM configuration file and wlmsend to work together to forward the
data to WLM.
First, in the configuration file, we define an slo structure to keep the
metric job_time under 2.0. Also, we set up wlmrcvdc to receive the
job_time metric values from wlmsend:
# Set up the SLO
slo data_cruncher {
pri = 3;
mincpu = 15;
maxcpu = 25;
entity = PRM group crunch;
goal = metric job_time < 2.0;
}
# Set up wlmrcvdc
tune job_time {
coll_argv = wlmrcvdc;
}
Second, we set up wlmsend in a data collector shell script, a perl
program, or on the command line to feed data to the rendezvous point. If
the data is coming from a file, say logfile, we can forward the data to
WLM as follows:
# tail -f logfile | /opt/wlm/bin/wlmsend job_time
wlmsend continuously feeds its
stdin to the rendezvous point
➊
Rendezvous
point
wlmsend wlmrcvdc wlmd
data piped to wlmsend
wlmrcvdc collects the
data and forwards it to wlmd
➋
command