Sun GlassFish Enterprise Server 2.1 High Availability Administration Guide

Configuring Multiple Web Server Instances

The 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.

    For detailed instructions, see Configuring Sun Web Server.

  2. Copy the DTD file 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 Configuring an HTTP Load Balancer on the DAS