Configuring httpd processes to handle maximum load, Configuring, Httpd – HP Integrity NonStop H-Series User Manual
Page 309: Processes to handle maximum load
Configuring
httpd
Processes to Handle Maximum Load
The
httpd
processes are configured using the
Server
configuration directive in the
<iTP
WebServer deployment directory>/conf/httpd.config
file on OSS. The
Server
directive controls the creation of the PATHMON environment, where the web server runs.
A typical default configuration of the
httpd
process of the iTP WebServer appears as follows:
Server $root/bin/httpd {
eval $DefaultServerAttributes
CWD [pwd]
Arglist -server [HTTPD_CONFIG_FILE]
Env TANDEM_RECEIVE_DEPTH=50
Priority 170
Numstatic 5
Maxservers 50
MapDefine =TCPIP^RESOLVER^NAME /G/system/ztcpip/resconf
MapDefine =TCPIP^PROCESS^NAME $transport
}
The number of
httpd
processes are governed by the following TS/MP attributes:
•
Numstatic
: This specifies the number of static servers running under PATHMON. The
static processes run on the system, irrespective of the load.
•
Maxservers
: This specifies the maximum number of server processes that can run under
PATHMON.
•
TANDEM_RECEIVE_DEPTH
: This specifies the capacity of each of the configured
httpd
processes.
•
(
Maxservers
–
Numstatic
): The difference denotes the number of dynamic servers. A
dynamic server is a need-based server. When the iTP WebServer is under heavy load and
all the static
httpd
processes are busy, a dynamic server process,
httpd
, is created to
support the excess load. These servers are dynamically created by TS/MP and are terminated
once the process is complete.
The capacity of the iTP WebServer environment can be summarized as:
•
The static capacity of iTP WebServer is
[Numstatic X TANDEM_RECEIVE_DEPTH]
.
•
The dynamic capacity is
[(Maxservers – Numstatic) X TANDEM_RECEIVE_DEPTH]
requests.
•
The total capacity of iTP WebServer is
[Maxservers X TANDEM_RECEIVE_DEPTH]
.
Example 1:
Assume that the
httpd
process of the iTP WebServer has the following configurations:
Server $root/bin/httpd {
eval $DefaultServerAttributes
CWD [pwd]
Arglist -server [HTTPD_CONFIG_FILE]
Env TANDEM_RECEIVE_DEPTH=100
Priority 170
Numstatic 5
Maxservers 50
MapDefine =TCPIP^RESOLVER^NAME /G/system/ztcpip/resconf
MapDefine =TCPIP^PROCESS^NAME $transport
}
When you start the iTP WebServer, five static
httpd
processes are started, governed by the
value of
Numstatic
. Because the value of
TANDEM_RECEIVE_DEPTH
is set to 100, each of
NonStop Platform Configurations
309