Installation guide

13
Configuring Web Load Balancer Using
XML
A Load Balancer works as a web-request dispatcher, distributing the web requests across a
set of Web/J2EE Cluster nodes. In advanced configurations, it distributes the web requests
even across non-cluster server instances and multiple vendor’s servers. Load Balancing for
EJB clusters is done at the container level and does not need any external configuration.
A Load Balancer is a variant of Web node. The steps involved in setting up a Load Balancer
are:
1 The DIR and the config files have to be setup just as one would do for a Standalone
instance.
2 Copy the server-config.xml and web-lbconfig.xml into the config DIR
3 Enable the Load Balancer in web-config.xml
<request-dispatcher enabled="true" name="web-lbconfig.xml"/>
4 Configure the Load Balancer properties in web-lbconfig.xml. The nodes are
referenced by their name:
<node name="first" type="pramati" host="localhost" web-
port="8484">
<naming-port>9494</naming-port>
<socket-pool min="20" max="50" idle-time-out="1000"/>
</node>
You can also configure node chooser and node group information from web-
lbconfig.xml. For more information on node chooser, node group and failover refer to
the Technical Reference document.
The following table lists all the parameters for configuring a Web Load Balancer:
Table 13: Dispatcher Configuration Parameters
Tag Attribute Option Description
node
name A unique name specifying the node
type Type of cluster
host Host name
web port Port where the node listens for requests
socket pool (min) Minimum socket pool size
socket pool (max) Maximum socket pool size