Load-balancing feature in GlassFish 3.1
By kshitiz on Mar 01, 2011
GlassFish 3.1 comes will all rich clustering feature, newly added in this release. GlassFish 3.1 also has load-balancing feature to complement its clustering feature. Following sections provide details on load-balancer supported in GlassFish 3.1.
GlassFish Server Open Source Edition 3.1
Apache + mod_jk is supported for this flavour of GlassFish Server. User need to download Apache source or binary from Apache site, and build/install it with mod_jk module. GlassFish Server is build over tomcat web container supports AJP protocol, thus it can work with mod_jk module of Apache. It does require some configuration. Please refer to blog or official documentation for complete details :
Blog : Amy Roh's Blog
Official documentation : Docs bundle
- Refer to chapter Configuring HTTP Load Balancing in guide ha-administration-guide.pdf
Oracle GlassFish Server 3.1
GlassFish Loadbalancer plugin is available for this flavour of GlassFish Server. This load-balancer plugin in similar to one available in GlassFish 2.1. Please refer to one pager for new features added in this release.
GlassFish Loadbalancer Configurator, installer and configurator for load-balancer plugin, is officially supported in this release. We did beta for this last year, and it is now inducted in the product itself. This tool will enable users to install and configure the loadbalancer plugin on the web server. It has easy to use graphical interface which accepts user inputs, and then installs and configures load-balancer plugin based on that.
This is a IzPack based installer and requires JAVA to execute. It is bundled as a zip file which contains installer jar file. User can start the installer by running java -jar glassfish-lbconfigurator-3_1.jar. User need to provide inputs as per his/her requirement. Each screen has Help button to guide user. Please refer to Help page to understand what inputs need to be provided on that particular screen. The installation of loadbalancer plugin is two step process :
- In first step, load-balancer plugin is exploded and installed
- In second step, web server is configured to use load-balancer plugin.
Installer provides Post Installation steps, if any. On last screen of installer, user can save a automation script which can be used for silent install at a later point of time.
It also contains an uninstall script, which user can use to unconfigure and uninstall the loadbalancer plugin from the web server.
Please refer to official documentation for supported web servers and platforms.
Download Location : GlassFish Loadbalancer Configurator
Official documentation : Configuring Web Servers for HTTP Load Balancing