![]() |
|
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:
server-config.xml and web-lbconfig.xml into the config DIR.web-config.xml: request-dispatcher enabled="true" name="web-lbconfig.xml"web-lbconfig.xml. The nodes are referenced by their name:
<node name="node1" host="192.168.1.1" web-port="8383">
<naming-port>9393 <socket-pool enabled="true" min="20" max="50" pool-idle-timeout-seconds="100"/>
</node>
You can also configure node chooser and node group information from web-lbconfig.xml.
The following table lists all parameters for configuring a Web Load Balancer:
Table 1: Dispatcher Configuration Parameters
| Tag Attribute | Option | Description |
| node | - | Enter here the details for a node. |
| - | name | Enter here a unique name specifying the node. |
| - | type | Enter here the type of cluster. |
| - | host | Enter here the host name. |
| - | Web port | Enter here the port where the node listens for requests. |
| - | socket pool (min) | Enter here the minimum socket pool size. |
| - | socket pool (max) | Enter here the maximum socket pool size. |
| - | pool-idle-timeout-seconds | Enter here the request time out in seconds. |
| node group | - | Enter here the details for a node group. |
| - | name | Enter here a unique name specifying the node group. |
| - | type | Enter here the type of cluster. |
| - | node-ref | Enter here the name by which the node group is referred. |
| node chooser | - | Enter here the details for a node chooser. |
| - | name | Enter here a unique name specifying the node chooser. |
| - | class | Enter here the implementation class for this node chooser. |
| - | host name | Enter here the node chooser host name. |
| - | URI Pattern | Enter here the URI pattern for mapping requests. |
| failover node chooser | - | Enter here the details for a failover node chooser. |
| - | name | Enter here the name specifying the failover node chooser. |
| - | class | Enter here the implementation class for this failover node chooser. |
| - | type | Enter here the type of cluster. |
| - | enable | Enter here the state of the failover node chooser. |
Related Topics:
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |