Oracle® Process Manager and Notification Server Administrator's Guide
10g Release 2 (10.1.2) B13996-02 |
|
Previous |
Next |
This chapter describes Oracle HTTP Server configuration in the OPMN opmn.xml
file.
It features the following topics:
Note:
|
The following lines load and identify the Oracle HTTP Server process module. Management of Oracle HTTP Server processes by the process module are identified by the module id
.
<module path="$ORACLE_HOME/opmn/lib/libopmnohs.so"> <module-id="OHS"/> </module>
The following lines represent the minimum configuration for Oracle HTTP Server. Default values are assigned to all other configuration elements and attributes for Oracle HTTP Server.
<ias-component id="HTTP_Server"> <process-type id="HTTP_Server" module-id="OHS"> <process-set id="HTTP_Server" numprocs="1"/> </process-type> </ias-component>
The following lines show a complete configuration for Oracle HTTP Server. It contains all possible configuration elements and attributes for Oracle HTTP Server.
<ias-component id="HTTP_Server" status="enabled" id-matching="false"> <process-type id="HTTP_Server" module-id="OHS"> <process-set id="HTTP_Server" restart-on-death="true" numprocs=1> <module-data> <category id="start-parameters"> <data id="config-file" value="/myconfs/httpd.conf"/> <data id="start-mode" value="ssl-disabled"/> <data id="command-line" value="-D MyDefine"/> </category> <category id="ping-parameters"> <data id="ping-url" value="/"/> </category> <category id="restart-parameters"> <data id="reverseping-timeout" value="345"/> <data id="no-reverseping-failed-ping-limit" value="3"/> <data id="reverseping-failed-ping-limit" value="6"/> </category> </module-data> <start timeout="300" retry="3"/> <stop timeout="300"/> <restart timeout="300"/> <ping timeout="30" interval="30"/> </process-set> </process-type> </ias-component>
This section describes the attributes that are specific for Oracle HTTP Server.
The Oracle HTTP Server attributes are described with the following format:
Title: This is the attribute name and value being defined. For example, id="HTTP_Server".
Required: This field defines whether or not the attribute is required in the component definition.
Default: This defines the default value assigned to the attribute. The default value appears in the installed version of the opmn.xml
file or is assigned internally if the attribute is not present.
Valid values: If applicable, this field defines the valid values for the attribute. For example, HTTP_Server
.
Path: This field defines in which elements the attribute can appear. For example, ias-component/process-type/process-set
HTTP_Server
ias-component
ias-component/process-type
ias-component/process-type/process-set
The id
attribute is required and cannot be changed. The id
must match the targets.xml
entry or Application Server Control Console will not work.
OHS
ias-component/process-type
The module-id
attribute defines the type of process. It associates the configuration with a process module. The OHS module-id
can be configured for managing Apache 1.3.
1
ias-component/process-type/process-set
The number of Oracle HTTP Server Instances to start. Only valid value is 1.
The numprocs
attribute gives the number of Oracle HTTP Server instances to start. The only valid value is 1.
id="start-parameters"
ias-component/process-type/process-set/module-data/category
The start-parameters
category contains the parameters that are relevant for the startup of Oracle HTTP Server.
id="config-file"
$ORACLE_HOME
/Apache/Apache/conf/httpd.conf
ias-component/process-type/process-set/module-data/category/
data
The config-file id
is an start command option which specifies the httpd.conf
for starting Oracle HTTP Server. The config-file id
is not supported on Microsoft Windows
id="start-mode"
ssl-enabled
ssl-enabled/ssl-disabled
ias-component/process-type/process-set/module-data/
category/data
This option specifies whether Oracle HTTP Server will be started with ssl enabled
.
id="command-line"
ias-component/process-type/process-set/module-data/
category/data
This id
option specifies extra command lines to append to the Oracle HTTP Server command line.
id="ping-parameters"
ias-component/process-type/process-set/module-data/
category
The ping parameters
category contains the parameters that configure how OPMN pings Oracle HTTP Server.
id="ping-url"
/
http://127.0.0.1/<path>
ias-component/process-type/process-set/module-data/
category/data
The ping-url
id
specifies the URL at which OPMN pings Oracle HTTP Server.
id="restart-parameters"
ias-component/process-type/process-set/module-data/
category
The restart-parameters
category is used for defining parameters that will be used in death-detection.
id="reverseping-timeout"
ias-component/process-type/process-set/module-data/
category/data
The reverseping-timeout
value is the maximum allowable time between two notifications arriving from an Oracle HTTP Server process. As part of death-detection, the Oracle HTTP Server module performs forward pings on the Oracle HTTP Server process. In the event that forward pings start failing, the reverse pings are taken into account in death-detection and Oracle HTTP Server processes are restarted.
id="no-reverseping-failed-ping-limit"
ias-component/process-type/process-set/module-data/category/
data
This id
module data
element defines the tolerance for failed forward pings in the event that reverse pings are also not being received (within the timeout period specified by the reverseping-timeout
data element). After the number of ping failures equals this limit, the process is deemed unresponsive and restarted by OPMN.
id="reverseping-failed-ping-limit"
3
ias-component/process-type/process-set/module-data/category/
data
This module data
element defines the tolerance for failed forward pings when reverse pings are succeeding. After the number of ping failures equals this limit, the process is deemed unresponsive and restarted by OPMN.
The Oracle HTTP Server 2 (OHS2) module ID is used to manage the version of Apache 2 shipped with Oracle Application Server 10g on the companion CD.
OHS2
ias-component/process-type
The module-id
attribute defines the type of process. It associates the configuration with a process module.
id="mpm"
prefork
worker/prefork
ias-component/process-type/process-set/module-data/
category/data
This option specifies what threading model OHS2
should use. This option is only valid for OHS2
and is only valid on Unix and Linux platforms.
Oracle does not support the perchild MPM. Microsoft Windows uses the mpm_winnt
MPM.
The Oracle HTTP Server process module can be configured to manage generic Apache processes. Follow these steps to configure the Oracle HTTP Server process module to manage generic Apache:
Update the module definition to include the generic Apache module-id
. The module definition should look similar to:
<module path="$ORACLE_HOME/opmn/lib/libopmnohs.so"> <module-id id="OHS" /> <module-id id="GENERIC_APACHE" /> </module>
Alter your HTTP_Server component to manage generic Apache. A GENERIC_APACHE process has one required parameter specified as module-data
. It is "apache-home
" in the "start-parameters
" module-data
category. The "apache-home
" specifies the installation directory of the generic Apache. The following example shows a generic Apache configuration:
<ias-component id="HTTP_Server">
<process-type id="HTTP_Server" module-id="GENERIC_APACHE">
<module-data>
<category id="start-parameters">
<data id="apache-home" value="/private1/apbuild/runapache_1.3.27"/>
</category>
</module-data>
<process-set id="HTTP_Server" numprocs="1"/>
</process-type>
</ias-component>