The Sun Java System Web Server plugin can be used as a pass-through load balancing mechanism with Sun Java System Application Server. Only the configuration information that is specific to Sun Cluster HA for Sun Java System Application Server is included here. The requirement for these configuration instructions is the installation of the Sun Java System Web Server plugin. See the Sun Java System Application Server documentation for detailed installation instructions, including patch requirements.
If you are configuring Sun Cluster HA for Sun Java System Application Server as a failover data service, installation of the front-end Sun Java System Web Server is optional.
To configure the Sun Java System Web Server plugin, configure the listeners in the loadbalancer.xml file.
If you are configuring Sun Cluster HA for Sun Java System Application Server as a failover data service, specify the Sun Java System Application Server logical hostname as the listeners in the loadbalancer.xml file.
<instance name="server1" enabled=true disable-timeout-in-minutes="60" listeners="http://foo-lh:80/ " /> |
If you configuring Sun Cluster HA for Sun Java System Application Server as a data service mastered on multiple nodes, and if the web server is running on the same cluster as the application server, specify the cluster private IP addresses as the listeners in the loadbalancer.xml file.
<instance name="server1" enabled=true disable-timeout-in-minutes="60" listeners="http://172.16.193.1:80/ http://172.16.194.5:80/ " /> |
You must use the node transport adapter IP addresses in the plugin configuration. To find these IP addresses, execute the scconf -p | less command from the primary Sun Cluster node. Note that equivalent hostnames such as clusternode1-priv do not work in this configuration, and should not be used.
If you are configuring Sun Cluster HA for Sun Java System Application Server as a data service mastered on multiple nodes, and if the web server is not running on the same cluster as the application server, specify the physical hostnames as the listeners in the loadbalancer.xml file.
<instance name="server1" enabled=true disable-timeout-in-minutes="60" listeners=http://hosta:80/ http://hostb:80/ " /> |
The preceding example assumes that the Sun Java System Application Server instances are configured on port 80 on cluster nodes hosta and hostb.