Thursday Feb 26, 2009

IIS is supported web-server for installing load-balancer plugin for a long time. Sun GlassFish Enterprise Server comes with a installer which takes care of configuring load-balancer plugin on IIS. There are still some manual steps, but they are minimal.

In this blog, user will be provided with complete set of manual steps to configure load-balancer plugin on IIS.

Platform supported

  • Windows 2003 Enterprise Edition

Currently the load-balancer plugin is well tested on above mentioned platform. It may work on other windows platform, even though it is not tested on those platform.


IIS Version supported

  • IIS 6.0
  • IIS 5.0

These are tested version of IIS with load-balancer plugin


Download Location

The load-balancer plugin library can be downloaded from http://download.java.net/javaee5/external/WINNT/aslb/jars

The latest version of load-balancer plugin available is aslb-9.1.1-b7.jar. User can download any other latest version compared to above version, if available.


Steps to configure load-balancer plugin on IIS

Let me first put down steps which is automatically taken care of by installer when using Sun GlassFish Enterprise Server :

  1. User has already installed IIS and directory C:\Inetpub\wwwroot(or equivalent) exists. Now create a directory sun-passthrough under C:\Inetpub\wwwroot. From now on directory C:\Inetpub\wwwroot\sun-passthrough will be referred to as <sun-passthrough-dir>.
  2. Download load-balancer plugin and unjar it. Then unzip SUNWaspx.zip and SUNWaslb.zip. This directory will be referred to as <lbplugin-unzip-dir>.
  3. Create directory
    1. <sun-passthrough-dir>\errorpages
    2. <sun-passthrough-dir>\resource
    3. <sun-passthrough-dir>\sec_db_files
  4. Copy file - <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\sun-passthrough.dll to <sun-passthrough-dir>. Also change permission of the file to executable for IIS run-as user(IIS_WPG).
  5. Copy file - <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\sun-passthrough.properties to <sun-passthrough-dir>. Append following entries to the file :
    1. lb-config-file=<sun-passthrough-dir>\loadbalancer.xml
    2. log-file=<sun-passthrough-dir>\lb.log
    3. log-level=INFO
  6. Copy files - <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\errorpages\default-error.html and <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\errorpages\sun-http-lberror.html to <sun-passthrough-dir>\errorpages directory.
  7. Copy files - <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\LBPluginDefault_root.res and <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\LBPlugin_root.res to <sun-passthrough-dir>\resource directory.
  8. Copy files - <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\secmod.db, <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\cert8.db and <lbplugin-unzip-dir>\lib\webserver-plugin\windows\iis\key3.db to <sun-passthrough-dir>\sec_db_files directory.
  9. Copy file <lbplugin-unzip-dir>\lib\install\templates\loadbalancer.xml.example to <sun-passthrough-dir>\loadbalancer.xml directory.
  10. Copy files - <lbplugin-unzip-dir>\lib\dtds\sun-loadbalancer_1_1.dtd and <lbplugin-unzip-dir>\lib\dtds\sun-loadbalancer_1_2.dtd to <sun-passthrough-dir> directory.

Manual steps that are needed even when using installer are well documented and are available at http://docs.sun.com/app/docs/doc/819-4740/abdhq?a=view
Note: In step 6, use <lbplugin-unzip-dir>\lib instead of <application-server-install-dir\bin and <application-server-install-dir\lib as suggested in linked documentation.

User need to edit load-balancer xml(<sun-passthrough-dir>\loadbalancer.xml) to reflect their cluster configuration. User can export load-balancer xml in DAS and then copy it to above mentioned location using following instructions.


Tuesday Feb 10, 2009

Pankaj has written a whitepaper on Converged Load-Balancer(CLB). This whitepaper provides following details :

  1. Overview of CLB
  2. Deployment Topology
  3. Load-balancing algorithms
  4. Functional details of CLB
  5. Cluster health monitoring
To see CLB in action, you can also view the CLB screencast. This was presented at SailFin webinar. To see the live demo, please visit SailFin booth at Mobile World Congress, 16-19 February 2009, Barcelona.

This blog copyright 2009 by kshitiz