DevPortal

How do I Achieve Load Balancing Using WebGate IIS Plugin?


Pramati WebGate plug-in can be configured to balance load among several backend nodes. One advantage of configuring load balancing at the plugin level is that it would avoid an extra hop to the LB node and the load balancing takes place right at the plugin level.

To learn more about concepts of load balancing read Request Dispatcher Architecture.

To enable load balancing of the WebGate Plug-in, unzip the downloadable archive at a convenient location on the machine on which it should be configured. Let this directory be <webgate_home>. You can also use the PServer/add_ons/webgate/iis directory as your webgate_home.

To achieve load balancing, you need to set the EnhancedLBEnabled property to true, and configure the web-lbconfig.xml file to perform load balancing.

The following table shows the various Load balancer related properties provided in the iisplugin.props file:

Table 1: Plug-in Properties File
Property Name Description


EnhanceLBEnabled To enable/disable the enhanced LoadBalancer which maintains Session stickiness, balances load in a round robin fashion, and performs failover by resending the request to another node. It also detects a restarted node. If enabled, the configuration properties between [node-info-begin] and [node-info-end] will not be read. Default is false.
PluginInstallationHome The plugin installation directory. The web-lbconfig.xml file needed to configure the enhanced LB and the JAR files will be picked up from this directory.
EnhancedLBContexts If EnhancedLBEnabled is enabled, then a list of contexts which need to be redirected to the back-end Pramati Servers is specified here. For example, EnhancedLBContexts admin. Use '@' for all contexts.


Here is a sample iisplugin.props enabling load balancing:

Logging verbose
LogFileName C:/PServer50/add_ons/webgate/iis/WebGate.log
AddClientHeaders true
EnhancedLBEnabled true
PluginInstallationHome C:/PServer50/add_ons/webgate/iis
EnhancedLBContexts test

Note: The web-lbconfig.xml file (in the <webgate_home> directory) should be configured to provide information about various backend nodes and their port numbers.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal