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.
To Configure Multiple Web Server Instances
-
Configure the new web server instance to use the load balancer
plug-in.
For detailed instructions, see Configuring Sun Java System Web Server.
-
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.
-
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:
-
Use asadmin create-http-lb-config to create
a new load balancer configuration.
-
Export the new configuration to a loadbalancer.xml file
using asadmin export http-lb-config.
-
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