This chapter describes the steps to install and configure the Sun Cluster HA for Apache data service on your Sun Cluster servers.
This chapter contains the following procedures.
You can configure the Sun Cluster HA for Apache data service as either a failover service or a scalable service. See Chapter 1, Planning for Sun Cluster Data Services and the Sun Cluster 3.0 U1 Concepts document for an overview of failover and scalable data services.
You can use SunPlex Manager to install and configure this data service. See the SunPlex Manager online help for details.
Before you install the Sun Cluster HA for Apache data service, update the following information in the Apache configuration file httpd.conf.
The ServerName directive that contains the hostname - For the Sun Cluster HA for Apache data service to be highly available, you must set this directive to the name of the network address (logical hostname or shared address) that is used to access the server. The logical hostname or shared address should have been set up when the cluster was installed. If not, see the Sun Cluster 3.0 U1 Installation Guide for information on how to set up logical hostnames and shared addresses, and set one up now.
The BindAddress directive, which you must set to the logical host or shared address - Because you can configure the Apache software to bind to INADDR_ANY, if you plan to run multiple instances of the Apache data service or multiple data services on the same node, each instance must bind to a unique network resource and port number.
The ServerType directive - This directive must be set to standalone, the default.
The ServerRoot directive that specifies the top of the directory tree under which the server's conf and log subdirectories are typically located - This directive has no default.
If you use a cluster file system as the location for the server root, you need only install the Apache software on that single file system to make the software accessible to all the nodes that can run the data service. See the discussion on placement of the binary files in "Determining the Location of the Application Binaries".
You might have multiple instances that use a single Apache binary. The location of the configuration file is specified according to the Confdir_list resource property. The following example shows the location of the configuration file.
(Location of the Apache binaries - also the value of the Bin_dir property) /global/apache/bin (Location of configuration directories - Confdir_list property) /global/websites/dev/conf /global/websites/sqa/conf (Location of httpd.conf files) /global/websites/dev/conf/httpd.conf /global/websites/sqa/conf/httpd.conf |
Run the following commands to start up the instances by hand, as you might when you verify your setup. Also, when instructed by the Resource Group Manager (RGM), the data service in effect issues the following commands to start the instances.
# /global/apache/bin/httpd \ -f /global/websites/dev/conf/httpd.conf # /global/apache/bin/httpd \ -f /global/websites/sqa/conf/httpd.conf |
The DocumentRoot directive that specifies the location of the documentation root directory - This directive is a pointer to a location on the cluster file system, where the HTML documents are installed.
The ScriptAlias directive that contains the location on a cluster file system of the cgi-bin directory - This directive is a pointer to a location on the cluster file system, where the cgi-bin files are installed.
You must follow certain conventions when you configure URL mappings for the Web server. For example, when setting the CGI directory, locate the CGI directory on the cluster file system to preserve availability. For example, you might map your CGI directory to /global/diskgroup/ServerRoot/cgi-bin, where diskgroup is the disk device group that contains the Apache software. In situations where the CGI programs access "back-end" servers, such as an RDBMS, ensure that the Sun Cluster software controls the "back-end" server. If the server is an RDBMS that the Sun Cluster software supports, use one of the highly available RDBMS packages. Alternatively, you can use the APIs that the Sun Cluster 3.0 U1 Data Services Developers' Guide documents to put the server under Sun Cluster control.
If you use a lock file - Set the value of the LockFile directive in your httpd.conf file to a local file.
Use a PidFile directive - Point this directive to a local file, as in the following example.
PidFile /usr/local/apache/log/httpd.pid |
The Port directive setting that the server port or ports access - The defaults are set in each node's httpd.conf file. The Port_list resource property must include all the ports specified in the httpd.conf files.
The Port_list property assumes that the Web server serves all combinations of ports and IP addresses from the network resources as defined in the Network_resources_used property.
Port_list="80/tcp,443/tcp,8080/tcp" |
The preceding Port_list configuration, for example, probes the following IP-port combinations.
Host |
Port | Protocol |
node1 |
80 |
tcp |
node1 |
443 |
tcp |
node1 |
8080 |
tcp |
node2 |
80 |
tcp |
node2 |
443 |
tcp |
node2 |
8080 |
tcp |
However, if node1 serves ports 80 and 443 only and node2 serves ports 80 and 8080 only, you can configure the Port_list property for Apache as follows.
Port_list=node1/80/tcp,node1/443/tcp,node2/80/tcp,node2/8080/tcp |
Consider the following rules.
You must specify hostnames or IP addresses (not network resource names) for node1 and node2.
If Apache serves nodeN/port for every nodeN in the Network_resources_used property, you can use a short form to replace the combination of node1/port1, node2/port2, and so on. See the following examples.
Example One
Port_list="80/tcp,node1/443/tcp,node2/8080/tcp" Network_resources_used=node1,node2 |
This example probes the following IP-port combinations.
Host |
Port | Protocol |
node1 |
80 |
tcp |
node1 |
443 |
tcp |
node2 |
80 |
tcp |
node2 |
8080 |
tcp |
Example Two
Port_list="node1/80/tcp,node2/80/tcp" Network_resources_used=net-1,net-2 #net-1 contains node1. #net-2 contains node2 and node3. |
This example probes the following IP-port combinations.
Host |
Port | Protocol |
node1 |
80 |
tcp |
node2 |
80 |
tcp |
All hostnames (IP addresses) that the Port_list property specifies must not belong to a network resource that is specified in any other scalable resource's Network_resources_used property. Otherwise, as soon as a scalable service detects that another scalable resource already uses an IP address, creation of the Apache resource fails.
If you are running the Sun Cluster HA for Apache data service and another HTTP server, configure the HTTP servers to listen on different ports. Otherwise, a port conflict can occur between the two servers.
To register and configure the Sun Cluster HA for Apache data service, you must consider or provide information on the following points.
Decide whether to run the Sun Cluster HA for Apache data service as a failover or a scalable service.
Decide which fault monitoring resource properties (such as the Thorough_probe_interval or Probe_timeout properties) to set. In most cases, the default values suffice. See "Configuring Sun Cluster HA for Apache Extension Properties" for information about these properties.
Provide the name of the resource type for the Sun Cluster HA for Apache data service. This name is SUNW.apache.
Provide the names of the cluster nodes that will master the data service.
Provide the logical hostname (failover services) or shared address (scalable services) that clients use to access the data service. You typically set up this IP address when you install the cluster. See the Sun Cluster 3.0 U1 Installation Guide for details on how to set up network addresses.
Provide the path to the application binaries. You can install the binaries on the local disks or on the cluster file system. See "Determining the Location of the Application Binaries" for a discussion of the advantages and disadvantages of each location.
Provide the path to the conf directory.
Exercise caution when changing the Load_balancing_weights property for an online scalable service that has the Load_balancing_policy property set to LB_STICKY or LB_STICKY_WILD. Changing these properties while the service is online can cause existing client affinities to be reset, hence a different node might service a subsequent client request even if another cluster member previously serviced the client.
Similarly, when a new instance of the service is started on a cluster, existing client affinities might be reset.
If a scalable proxy is serving a scalable Web resource with the LB_STICKY policy, you must also set up an LB_STICKY policy for the proxy.
Determine the entries for the Confdir_list and Port_list properties. For failover services, the Confdir_list property can have only one entry, but the Port_list property can have multiple entries. For scalable services, both properties can have multiple entries. See "How to Register and Configure Sun Cluster HA for Apache" for details.
Table 5-1 lists the sections that describe the installation and configuration tasks.
Table 5-1 Task Map: Installing and Configuring Sun Cluster HA for Apache
Task |
For Instructions, Go To |
---|---|
Install the Apache software |
"How to Install and Configure the Apache Application Software from the Apache Web Site" |
Install the Sun Cluster HA for Apache data-service packages | |
Configure and start the Sun Cluster HA for Apache data service | |
Configure resource extension properties |
"Configuring Sun Cluster HA for Apache Extension Properties" |
View fault-monitor information |
This section describes the steps to install the Apache server-either from the Solaris 8 operating-environment CD-ROM or from the Apache Web site-and to enable the server to run as the Sun Cluster HA for Apache data service.
The Sun Cluster HA for Apache data service works with the Apache software configured as either a Web server or a proxy server.
See Apache documentation at http://www.apache.org for standard installation instructions. See the Sun Cluster 3.0 U1 Release Notes for a list of Apache releases supported for use with the Sun Cluster software.
The Apache binaries are included in three packages-SUNWapchr, SUNWapchu, and SUNWapchd-which form the SUNWCapache package metacluster. You must install the SUNWapchr package before you install the SUNWapchu package.
Place the Web server binaries on the local file system on each of your cluster nodes or on a cluster file system.
Run the pkginfo(1) command to determine if the Apache packages SUNWapchr, SUNWapchu, and SUNWapchd have been installed.
If not, install as follows.
# pkgadd -d Solaris 8 Product directory SUNWapchr SUNWapchu SUNWapchd ... Installing Apache Web Server (root) as SUNWapchr ... [ verifying class initd ] /etc/rc0.d/K16apache linked pathname /etc/rc1.d/K16apache linked pathname /etc/rc2.d/K16apache linked pathname /etc/rc3.d/S50apache linked pathname /etc/rcS.d/K16apache linked pathname ... |
Disable the START and STOP run control scripts that were just installed as part of the SUNWapchr package.
This step is necessary because the Sun Cluster HA for Apache data service starts and stops the Apache application after you have configured the data service. Perform the following steps.
List the Apache run control scripts.
Rename the Apache run control scripts.
Verify that all the Apache-related scripts have been renamed.
The following example changes the first letter in the name of the run control script from uppercase to lowercase. However, you can rename the scripts to be consistent with your normal administration practices.
# ls -1 /etc/rc?.d/*apache /etc/rc0.d/K16apache /etc/rc1.d/K16apache /etc/rc2.d/K16apache /etc/rc3.d/S50apache /etc/rcS.d/K16apache # mv /etc/rc0.d/K16apache /etc/rc0.d/k16apache # mv /etc/rc1.d/K16apache /etc/rc1.d/k16apache # mv /etc/rc2.d/K16apache /etc/rc2.d/k16apachc # mv /etc/rc3.d/S50apache /etc/rc3.d/s50apache # mv /etc/rcS.d/K16apache /etc/rcS.d/k16apache # ls -1 /etc/rc?.d/*apache /etc/rc0.d/k16apache /etc/rc1.d/k16apache /etc/rc2.d/k16apache /etc/rc3.d/s50apache /etc/rcS.d/k16apache |
Become superuser on a cluster member.
Use the steps that the Apache documentation describes to install the Apache software.
See the documentation that you received with your Apache software or the Apache Web site at http://www.apache.org.
Update the httpd.conf configuration file.
Set the ServerName directive.
Set the BindAddress directive (optional).
Set the ServerType, ServerRoot, DocumentRoot, ScriptAlias, and LockFile directives.
Set the Port directive to the same number as the Port_list standard resource property. See Step 4 for more information.
Make changes to run as a proxy server if you choose to run the Apache software as a proxy server. See the Apache documentation for more information. If you will run the Apache software as a proxy server, the CacheRoot setting must point to a location on the cluster file system.
Verify that the port number or numbers in the httpd.conf file match those of the Port_list standard resource property.
You can edit the httpd.conf configuration file to change its port number or numbers to match the standard Sun Cluster resource property default (port 80). Alternatively, while you configure the Sun Cluster HA for Apache data service, you can set the Port_list standard property to match the setting in the httpd.conf file.
(Optional) If you will use the Apache start/stop script Bin_dir/apachectl, update the paths in the script file.
You must change the paths from the Apache defaults to match your Apache directory structure.
Perform the following tasks to verify your configuration changes.
Run apachectl configtest to check the Apache httpd.conf file for correct syntax.
Ensure that any logical hostnames or shared addresses that Apache uses are configured and online.
Issue apachectl start to start up your Apache server by hand. If Apache does not start up correctly, correct the problem.
After Apache has started, stop it before moving to the next procedure.
If the Apache data-service packages have not been installed from the Sun Cluster Agents CD, go to "Installing Sun Cluster HA for Apache Packages". Otherwise, go to "Registering and Configuring Sun Cluster HA for Apache".
You can use the scinstall(1M) utility to install SUNWscapc, the Sun Cluster HA for Apache data-service package, on a cluster. Do not use the -s option to noninteractive scinstall to install all data-service packages.
If you installed the data-service packages during your initial Sun Cluster installation, proceed to "Registering and Configuring Sun Cluster HA for Apache". Otherwise, use the following procedure to install the SUNWscapc package now.
You need the Sun Cluster Agents CD to complete this procedure. Run this procedure on all cluster members that can master the Sun Cluster HA for Apache data service.
Load the Agents CD into the CD-ROM drive.
Run the scinstall utility with no options.
This step starts the scinstall utility in interactive mode.
Select the Add Support for New Data Service to This Cluster Node menu option.
This option enables you to load software for any data services that exist on the CD.
Exit the scinstall utility.
Unload the CD from the drive.
See "How to Register and Configure Sun Cluster HA for Apache" to register the Sun Cluster HA for Apache data service and to configure the cluster for the data service.
This procedure describes how to use the scrgadm(1M) command to register and configure the Sun Cluster HA for Apache data service.
Apache can be configured as a failover service or as a scalable service, as follows.
When you configure Apache as a failover service, you place the Apache application resources and the network resources in a single resource group.
When you configure Apache as a scalable service, you create a scalable resource group for the Apache application resources and a failover resource group for the network resources.
The scalable resource group depends on the failover resource group. Additional steps are required to configure Apache as a scalable service. The leading text "For scalable services only" in the following procedure identifies these steps. If you are not configuring Apache as a scalable service, skip the steps marked "For scalable services only."
Run this procedure on any cluster member.
Become superuser on a cluster member.
Register the resource type for the data service.
# scrgadm -a -t SUNW.apache |
Adds the data-service resource type.
Specifies the predefined resource-type name for your data service.
Create a failover resource group to hold the network and application resources.
This resource group is required for both failover and scalable services. For failover services, the resource group contains both network and failover application resources. For scalable services, the resource group contains network resources only. A dependency is created between this group and the resource group that contains the application resources.
Optionally, you can select the set of nodes on which the data service can run with the -h option.
# scrgadm -a -g resource-group [-h nodelist] |
Adds a new configuration.
Specifies the name of the failover resource group to add. This name can be your choice but must be unique for the resource groups within the cluster.
An optional comma-separated list of physical node names or IDs that identify potential masters. The order specified here determines the order in which the nodes are considered as primary during failover.
Use -h to specify the order of the node list. If all the nodes in the cluster are potential masters, you need not use the -h option.
Verify that all network addresses that you use have been added to your name-service database.
You should have performed this verification during your initial Sun Cluster installation. See the planning chapter in the Sun Cluster 3.0 U1 Installation Guide for details.
To avoid failures because of name-service lookup, verify that all network addresses are present in the /etc/hosts file on all cluster nodes. Configure name-service mapping in the /etc/nsswitch.conf file on the servers to first check the local files prior to accessing NIS, NIS+, or DNS.
Add a network resource (logical hostname or shared address) to the failover resource group that you created in Step 3.
# scrgadm -a {-S | -L} -g resource-group \ -l hostname, ... [-j resource] \ [-X auxnodelist] [-n netiflist] |
The -S option specifies shared-address resources. The -L option specifies logical-hostname resources.
Specifies a comma-separated list of network resources to add. You can use the -j option to specify a name for the resources. If you do not do so, the network resources have the name of the first entry on the list.
Specifies the name of the failover resource group that you created in Step 3.
Specifies a resource name. If you do not supply your choice for a resource name, the name of the network resource defaults to the first name that is specified after the -l option.
Specifies a comma-separated list of physical node names or node IDs that identify cluster nodes that can host the shared address but never serve as primary in the case of failover. These nodes are mutually exclusive with the nodes identified in nodelist for the resource group, if specified.
Specifies an optional comma-separated list that identifies the NAFO groups on each node. All nodes in nodelist of the resource group must be represented in netiflist. If you do not specify this option, scrgadm attempts to discover a net adapter on the subnet that the hostname list identifies for each node in nodelist.
For scalable services only - Create a scalable resource group to run on all desired nodes of the cluster.
If you run the Sun Cluster HA for Apache data service as a failover data service, proceed to Step 8.
Create a resource group to hold a data-service application resource. You must specify the maximum and desired number of primary nodes.
If only a subset of nodes can be primaries for this resource group, you must specify the names of these potential primaries using the -h option when you create the resource group.
You must also specify any dependency between this resource group and the failover resource group that you created in Step 3. This dependency ensures that when failover occurs, if the two resource groups are being brought online on the same node, the Resource Group Manager (RGM) starts up the network resource before any data services that depend on the network resource.
# scrgadm -a -g resource-group \ -y Maximum_primaries=m -y Desired_primaries=n \ -y RG_dependencies=resource-group \ [-h nodelist] |
Specifies the name of the scalable-service resource group to add.
Specifies the maximum number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.
Specifies the desired number of active primary nodes allowed for this resource group. If you do not assign a value to this property, the default is 1.
Identifies the resource group that contains the shared-address resource on which the resource group being created depends, that is, the name of the failover resource group created in Step 3.
An optional list of nodes that can be primaries for this resource group. You only need to specify this list if some nodes cannot act as primaries for this resource group.
For scalable services only - Create an application resource in the scalable resource group.
If you run the Sun Cluster HA for Apache data service as a failover data service, proceed to Step 8.
# scrgadm -a -j resource -g resource-group \ -t resource-type -y Network_resources_used=network-resource, ... \ -y Port_list=port-number/protocol[, ...] -y Scalable=True \ -x Confdir_list=config-directory -x Bin_dir=bin-directory |
Specifies your choice for the name of the resource to add.
Specifies the name of the scalable resource group into which the resources are to be placed.
Specifies the type of the resource to add.
Specifies a comma-separated list of network-resource names that identify the shared addresses that the data service uses.
Specifies a comma-separated list of port numbers and protocol to be used, for example, 80/tcp,81/tcp.
Specifies a required parameter for scalable services. Must be set to True.
Specifies a comma-separated list of the locations of the Apache configuration files. The Sun Cluster HA for Apache data service requires this extension property.
Specifies the location where the Apache binaries are installed. The Sun Cluster HA for Apache data service requires this extension property.
Optionally, you can set additional extension properties that belong to the Apache data service to override the default value. See Table 5-2 for a list of extension properties.
For failover services only - Create an application resource in the failover resource group.
Perform this step only if you run the Sun Cluster HA for Apache data service as a failover data service. If you run the Sun Cluster HA for Apache data service as a scalable service, you should have performed Step 6 and Step 7 and should now proceed to Step 10.
# scrgadm -a -j resource -g resource-group \ -t resource-type -y Network_resources_used=network-resource, ... \ -y Port_list=port-number/protocol[, ...] -y Scalable=False \ -x Confdir_list=config-directory -x Bin_dir=bin-directory |
Specifies your choice for the name of the resource to add.
Specifies the name of the resource group into which the resources are to be placed, created in Step 3.
Specifies the type of the resource to add.
Specifies a comma-separated list of network resources that identify the shared addresses that the data service uses.
Specifies a comma-separated list of port numbers and protocol to be used, for example, 80/tcp,81/tcp.
This property is required for scalable services only. Here the value is set to False or can be omitted.
Specifies the location of the Apache configuration file. The Sun Cluster HA for Apache data service requires this extension property, and the property must have exactly one entry.
Specifies the location where the Apache binaries are installed. The Sun Cluster HA for Apache data service requires this extension property.
Bring the failover resource group online.
# scswitch -Z -g resource-group |
Enables the shared-address resource and fault monitoring, switches the resource group into a managed state, and brings the resource group online.
Specifies the name of the failover resource group.
For scalable services only - Bring the scalable resource group online.
# scswitch -Z -g resource-group |
Enables the resource and monitor, moves the resource group to the managed state, and brings the resource group online.
Specifies the name of the scalable resource group.
For scalable services, you create the following resource groups.
a failover resource group that contains the network resources
a scalable resource group that contains the application resources
Cluster Information Node names: phys-schost-1, phys-schost-2 Shared address: schost-1 Resource groups: resource-group-1 (for shared addresses), resource-group-2 (for scalable Apache application resources) Resources: schost-1 (shared address), apache-1 (Apache application resource) (Add a failover resource group to contain shared addresses.) # scrgadm -a -g resource-group-1 (Add the shared address resource to the failover resource group.) # scrgadm -a -S -g resource-group-1 -l schost-1 (Register the Apache resource type.) # scrgadm -a -t SUNW.apache (Add a scalable resource group.) # scrgadm -a -g resource-group-2 -y Maximum_primaries=2 \ -y Desired_primaries=2 -y RG_dependencies=resource-group-1 (Add Apache application resources to the scalable resource group.) # scrgadm -a -j apache-1 -g resource-group-2 \ -t SUNW.apache -y Network_resources_used=schost-1 \ -y Scalable=True -y Port_list=80/tcp \ -x Bin_dir=/opt/apache/bin -x Confdir_list=/opt/apache/conf (Bring the failover resource group online.) # scswitch -Z -g resource-group-1 (Bring the scalable resource group online on both nodes.) # scswitch -Z -g resource-group-2 |
The following example shows how to register a failover Apache service on a two-node cluster.
Cluster Information Node names: phys-schost-1, phys-schost-2 Logical hostname: schost-1 Resource group: resource-group-1 (for all resources) Resources: schost-1 (logical hostname), apache-1 (Apache application resource) (Add a failover resource group to contain all resources.) # scrgadm -a -g resource-group-1 (Add the logical hostname resource to the failover resource group.) # scrgadm -a -L -g resource-group-1 -l schost-1 (Register the Apache resource type.) # scrgadm -a -t SUNW.apache (Add Apache application resources to the failover resource group.) # scrgadm -a -j apache-1 -g resource-group-1 \ -t SUNW.apache -y Network_resources_used=schost-1 \ -y Scalable=False -y Port_list=80/tcp \ -x Bin_dir=/opt/apache/bin -x Confdir_list=/opt/apache/conf (Bring the failover resource group online.) # scswitch -Z -g resource-group-1 |
Use the information in "How to Verify Data-Service Installation and Configuration" to verify the installation. See "Configuring Sun Cluster HA for Apache Extension Properties" to set or modify resource extension properties.
The SUNW.HAStorage resource type synchronizes actions between HA storage and the data service. The Sun Cluster HA for Apache data service is scalable, and therefore you should configure the SUNW.HAStorage resource type.
See the SUNW.HAStorage(5) man page and "Relationship Between Resource Groups and Disk Device Groups" for background information. See "How to Set Up SUNW.HAStorage Resource Type for New Resources" for the procedure.
After you configure the Sun Cluster HA for Apache data service, verify that you can open a Web page with the network resources (logical hostnames or shared addresses) and port number from a Web browser. Perform a switchover with the scswitch(1M) command to verify that the service continues to run on a secondary node and can be switched back to the original primary.
The only required extension properties for creating an Apache server resource are the Confdir_list and Bin_dir properties. The Confdir_list property specifies a directory that contains a subdirectory named conf, in which the Apache configuration properties (httpd.conf) reside.
Typically, you use the command-line scrgadm -x parameter=value to configure the extension properties when you create the Apache server resource. You can also follow the procedures described in Chapter 11, Administering Data-Service Resources to configure the properties later.
See Appendix A, Standard Properties for details on all Sun Cluster properties.
You can update some extension properties dynamically. You can update others, however, only when you create the Apache server resource. The following table describes extension properties that you can configure for the Apache server. The Tunable column indicates when you can update the property.
Table 5-2 Sun Cluster HA for Apache Extension Properties
Name/Data Type |
Default |
Range |
Tunable |
Description |
---|---|---|---|---|
Bin_dir (string) |
None |
None |
At creation |
The path to the Apache binaries. The Sun Cluster HA for Apache data service requires this extension property. |
Confdir_list (string array) |
None |
None |
At creation |
The directory that contains a subdirectory called conf, which contains the httpd.conf configuration file. The Sun Cluster HA for Apache data service requires this extension property. |
Monitor_retry_count (integer) |
4 |
0 - 2,147,483,641
-1 indicates an infinite number of retry attempts. |
At creation |
Controls restarts of the fault monitor and indicates the number of times that the process monitor facility (PMF) restarts the fault monitor during the time window that the Monitor_retry_interval property specifies. This property refers to restarts of the fault monitor itself rather than to the resource. The system-defined properties Retry_interval and Retry_count control resource restarts. |
Monitor_retry_interval (integer) |
2 |
0 - 2,147,483,641
-1 indicates an infinite retry interval. |
At creation |
The time (in minutes) over which failures of the fault monitor are counted. If the number of times that the fault monitor fails exceeds the value that is specified in the extension property Monitor_retry_count within this period, the PMF does not restart the fault monitor. |
Probe_timeout (integer) |
30 |
0 - 2,147,483,641 |
At creation |
The time-out value (in seconds) that the fault monitor uses to probe an Apache instance. |
The Sun Cluster HA for Apache probe sends a request to the server to query the health of the Apache server. Before the probe actually queries the Apache server, the probe checks to confirm that network resources are configured for this Apache resource. If no network resources are configured, an error message (No network resources found for resource) is logged, and the probe exits with failure.
The probe executes the following steps.
Uses the time-out value that the resource property Probe_timeout sets to limit the time spent trying to successfully probe the Apache server.
Connects to the Apache server and performs an HTTP 1.0 HEAD check by sending the HTTP request and receiving a response. In turn, the probe connects to the Apache server on each IP address/port combination.
The result of this query can be either a failure or a success. If the probe successfully receives a reply from the Apache server, the probe returns to its infinite loop and continues the next cycle of probing and sleeping.
The query can fail for various reasons, such as heavy network traffic, heavy system load, and misconfiguration. Misconfiguration can occur if the Apache server is not configured to be listening on all IP address/port combinations that are being probed. The Apache server should service every port for every IP address specified for this resource. If the reply to the query is not received within the Probe_timeout limit (specified in Step 1 previously), the probe considers this scenario a failure on the part of the Apache data service and records the failure in its history. An Apache probe failure can be a complete failure or a partial failure.
The following probe failures are considered complete failures.
Failure to connect to the server, as the following error message flags, with %s indicating the host name and %d the port number.
Failed to connect to %s port %d %s |
Running out of time (exceeding the resource property time-out Probe_timeout) after trying to connect to the server.
Failure to successfully send the probe string to the server, as the following error message flags, with the first %s indicating the host name, %d the port number, and the second %s indicating further details about the error.
Failed to communicate with server %s port %d: %s |
The monitor accumulates two such partial failures within the resource property interval Retry_interval and counts them as one.
The following probe failures are considered partial failures.
Running out of time (exceeding the resource property timeout Probe_timeout) while trying to read the reply from the server to the probe's query.
Failing to read data from the server for other reasons, as the following error message flags, with the first %s indicating the host name and %d the port number. The second %s indicates further details about the error.
Failed to communicate with server %s port %d: %s |
Based on the history of failures, a failure can cause either a local restart or a failover of the data service. "Health Checks of the Data Service" further describes this action.