Thursday Jan 12, 2012

About GlassFish network topologies and load-balancing

Note: if you're reading this using a feedreader, please make sure you've updated to the updated TheAquarium feed.

Load-balancing is a topic that comes up often with GlassFish users and Markus has posted a piece covering both proxying and load-balancing.

He covers Unix techniques such as iptables, authbind and Apache mod_proxy as both a reverse-proxy or rewriting engine but also the Jsvc utility. He also touches on different load-balancing options: Oracle GlassFish Server, mod_jk, and mod_proxy_balancer. Feel free to share your load-balancing experiences on his blog.

Note that GlassFish 3.1.2 will strengthen its support for mod_proxy_ajp and that load-balancing provisioning is handled by early builds of GlassFish 4.0 as shown in this video from JavaOne 2011.

ALT_DESCR

Monday Jan 02, 2012

From zero to load-balanced GlassFish cluster

Bordeaux's François has a how-to entry on installing and setting up a cluster of the latest GlassFish 3.1.1 on an environment with nothing pre-installed (no java, xauth, etc.).

ALT_DESCR

This is over multiple machines, including a load-balancer tier. You should find the GlassFish clustering part to be fairly straightforward and the load-balancer part detailed, with its security/SSL configuration and management straight from the GlassFish admin server.

François also has two other GlassFish-related entries :
Using Jsp in a Jersey JAX-RS RESTful service
How to change the Glassfish server log level from command line

Friday Mar 04, 2011

GlassFish 3.1 SOTD #5 - Load-balancing with GlassFish plugin for Oracle iPlanet Web Server

In this fifth post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is John's Load-Balancing for GlassFish 3.1 which he's discussed on his blog.

This is a feature that is part of Oracle GlassFish Server Control which comes bundled with Oracle GlassFish Server and available for free trial.

This is actually a 5-part series showing :
an intro and downloads of all the artifacts (glassfish, web server and load-balancer)
installing GlassFish and creating a cluster
installing the web erver (including setting up the self-signed certificate)
installing the load-balancer plugin (graphical installer, includes DAS certificate file configuration)
testing high-availability of a deployed application

You can also read Configuring HTTP Load Balancing from the Oracle GlassFish Server documentation set and find more screencasts hosted on the GlassFish YouTube Channel.

Tuesday Mar 25, 2008

New Converged Load Balancer

Diagram of COnverged Load Balancer

Kshitiz has a note on the new Java-based Converged Load Balancer that will be part of SailFin and GlassFish v2.1. The CLB handles both HTTP and SIP traffic and can be used with and without a hardware IP sprayer.

Check Kshitiz's Detailed Writeup for details on load balancing algorithms and configuration options.

Thursday Jan 24, 2008

Article on combining GlassFish AMX and Management Rules

Masoud Kalali's picture

GlassFish doesn't trade enterprise features such as management and monitoring for Open Source. Masoud Kalali's recent article on java.net is a good illustration of this. It shows how the JMX-based administration infrastructure can be accessed to dynamically change the behavior of the HTTP load-balancer.

The article first goes into what JMX and GlassFish AMX's are before introducing GlassFish v2's Management Rules mechanism. The rest is a detailed explanation of how to create and deploy the MBean to manage the weight of the load-balancer algorithm and the corresponding management rule.

Masoud had previously written detailed blog entries about:
- How to Secure GlassFish installation.
- GlassFish version 2 monitoring capabilities

Monday Dec 03, 2007

Apache as Load Balancer for GlassFish v2

Apache Httpd logo

GlassFish has had mod_jk support since GFv1; a common use case is where Apache httpd server is serving static pages and delegating to GlassFish for dynamic content.

The any-day-now GFv2 UR1 release also supports the case where httpd works as a load balancer to a cluster of GF instances, and Jan's latest note describes in detail how this works out.

Jan's entry not just describes how to configure httpd and GF but it also includes an architectural overview, explaining how jvmRoute works in the load balancer scheme used by httpd as well as how it was implemented. Check it out!

Monday Oct 08, 2007

Two new articles on GlassFish v2 - Clustering and Solaris Zones

ALT DESCR

When it comes to clustering in an application server, defining the vocabulary is the first thing that needs to be done. This new article does this and much more. It defines key concepts for GlassFish such as Domain Administration Server (DAS), Node Agents, server instances, discusses deployment topologies, and explains how the Shoal and JXTA technologies are used to set up the cluster and replicate data in-memory. It also provides instructions on how to get the GlassFish "Cluster" profile running.

The second article explains how the application server can take advantage of the Zones technology built in Solaris 10 and OpenSolaris. It has a quick intro on what are Solaris zones and how they provide isolated environments for application instances. Propagation among zones can complicate installations and updates, so the article going into the details of installing and using the GlassFish application server in a global or a sparse zone. It also covers upgrading from previous versions of the software that may have come bundled with Solaris.

Wednesday Sep 19, 2007

More on clustering and load-balancing in GlassFish v2

Cluster image

One of the key features in GlassFish v2 is clustering support. With greater power comes greater responsibility, so Prashanth has a detailed post on setting up and using the clustering, load-balancing and data replication features from the newly released GlassFish v2.

Prashanth goes into the various options in terms of replication and load-balancing using either software (web servers) or hardware solutions. It also covers more advanced topics such as establishing a secure connection between the DAS (Domain Admin Server) and the web server. Shreedhar comments with interesting GMS/Shoal prerequisites like syncing machine clocks.

Update: The clustering features briefly described here are meant to give readers a feel for how this all works and is not intended to replace the product documentation
•  Sun Java System Application Server 9.1 High Availability Administration Guide
•  Sun Java System Application Server 9.1 Deployment Planning Guide
•  Sun Java System Application Server 9.1 HADB Commands Reference Manual.

Sunday Aug 26, 2007

Load Balancers and GlassFish

Balanced Scales

A recent USERS thread asked about Load Balancers and GlassFish; from there and with a couple of additions:

• Load Balancer Module Home Page
• Daniel on Balancing with Mod_JK
• Prashanth on BigIP - F5, a hardware appliance.
• Sreeram and Jason on using Sun Secure Application Switch
• Pankaj on using LB Plugin (which can be used with SJS Web Server)
More LB Plugin Info from Satish.

We are going to start an FAQ at the GlassFish Wiki for frequent questions like this; stay tuned.

On a different direction, one of Sailfin's improvements is integrated Load Balancer - see Milestone 1.

Wednesday May 23, 2007

Load Balancing for GlassFish v2 with F5's Big-IP

Photo of Big-IP (from F5)

GlassFish is moving farther in the deployment level, with GlassFish v2's support for clustering and other enterprise-level features. A recent example of this is described by Prashanth where, triggered by questions at the JavaOne pavillion, he describes how to use a hardware appliance (Big-IP from F5 Networks) for load balancing.

Prashanth's writeup is very detailed and explains how to configure Big-IP and also includes links to relevant GlassFish documents. Check it out!

Sunday May 06, 2007

Administration of Load Balancer in GlassFish V2

Wood Carving of SeeSaw with kids

It is JavaOne week and there will be many posts about the conference (and its preludes at CommunityOne) but I am going to also inject some general posts to balance it out a bit...

So, talking about balancing, check out this post by Prashanth on the LoadBalancer Administration in GlassFish v2. Clustering and improved administration are part of the features in the next release, so this is very much apropos.

Now back to finishing my slides for GlassFish Day!

Friday Sep 15, 2006

Status of Load Balancer Administration in GlassFish V2

The GlassFish User Experience group is going through a number of topics to improve the usability of GlassFish. The meetings are open (like this one), minutes are posted, and then we hope action is taken :-).

A Balance Scale

Two weeks ago Satish presented on Load Balancing Administration (Minutes). After that he wrote two blogs describing Installing Load Balancer using the (APS) Installer and on Updating and Monitoring HTTP Load Balancer, and now has a Summarized the status of LB Administration. There is also a new Load Balancer Home Page.

We hope all of this helps with Load Balancing ease of use, but send mail to the USERS mailing list if you have feedback to share.