Sun Java System Application Server Enterprise Edition 8.1 2005Q2 High Availability Administration Guide

Configuring Multiple Web Server Instances

The Sun Java System Application Server installer does not allow the installation of multiple load balancer plug-ins on a single machine. To have multiple web servers with the load balancer plug-in on a single machine, in either a single cluster or multiple clusters, a few manual steps are required to configure the load balancer plug-in.

ProcedureTo Configure Multiple Web Server Instances

  1. Configure the new web server instance to use the load balancer plug-in.

    Follow the steps in Modifications to Sun Java System Web Server or Using Apache Web Server , or Installation

  2. Copy the DTD file.

    Copy sun-loadbalancer_1_1.dtd from the existing web server instance’s config directory to the new instance’s config directory.

  3. Set up the load balancer configuration file. Either:

    • Copy the existing load balancer configuration.

      Use an existing load balancer configuration, copy the loadbalancer.xml file from the existing web server instance’s config directory to the new instance’s config directory.

    • Create a new load balancer configuration:

      1. Use asadmin create-http-lb-config to create a new load balancer configuration.

      2. Export the new configuration to a loadbalancer.xml file using asadmin export http-lb-config.

      3. Copy that loadbalancer.xml file to the new web server’s config directory.

        For information on creating a load balancer configuration and exporting it to a loadbalancer.xml file, see Creating an HTTP Load Balancer Configuration