HP WebQoS Peak for HP-UX Concepts and Operation Guide

50 Chapter5
HP WebQoS Peak for the Apache Web Server
Integrating HP WebQoS with the Apache Web Server
6. Restart the Apache server, so that the changes will take effect. Before
restarting the server, it is recommended that you read the next
section.
Configuring HP WebQoS for Apache
Once the HP WebQoS module is integrated with the Apache server, HP
WebQoS becomes operational when the server is (re)started. However,
the module's defaults are unlikely to satisfy the needs of all sites. This
section describes the configurable parameters of the HP WebQoS module
and how to set these parameters.
Setting the Configurable Parameters
You can modify the behavior of the HP WebQoS modules by placing the
appropriate directives (commands) in your Apache configuration file(s):
either httpd.conf, srm.conf,oraccess.conf. These configuration files
can be found in
apache_home
/etc/ (or in
apache_home
/conf/, if you
used the older installation layout.) All HP WebQoS directives start with
the characters HP WebQoS. See “HP WebQoS Configurable Parameters
for the Apache Web Server” on page 84 for a list of the available
configurable parameters for the Apache server.
Admitting Sessions To turn HP WebQoS on and off, use the
HPACAdmission Control directive. The default for this directive is “on.
For example, to turn admissions off, use the following directive in your
configuration file:
HPACAdmission Control off
If WebQoS is disabled (set to off), all sessions are admitted to the web
server.
When the HP WebQoS is in effect, new sessions are admitted based on
system load. You can set a load threshold using the
HPACAdmitLoadThreshold directive. The default for this directive is
“2.0.” For example, to set the load threshold at 1.5, use the following
directive in your configuration file:
HPACAdmitLoadThreshold 1.5
To calculate the load threshold
1. Run the top command. Note the first number in the “Load averages”
list and the percentage listed under “IDLE” of “Cpu states”.