The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Glassfish Cluster and Hardware Load Balancer

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 4 - Last Post: Sep 27, 2007 5:07 PM by: ai109478
Evaristo José ...
Glassfish Cluster and Hardware Load Balancer
Posted: Sep 27, 2007 12:00 AM
  Click to reply to this thread Reply



Hi:

We are in the process to migrate a cluster JEE
application from Tomcat 5.5.x to Glassfish.

Tomcat 5.5.x uses and all-to-all (problems to scale,
by the way) in memory session replication strategy
that allows that all the cluster members have a copy
on the HttpSession. Taken that into account we have
configured the Hardware Load Balancer in a round robin
way

Our intention is to employ Glassfish memory
replication for clustering HttpSessionÂ’s. Glassfish
does not make a copy of the session in all cluster
nodes, so what is the optimum configuration for the
Load Balancer. Is it better to configure it to allow
that all the requests in a single session should be
managed by the same cluster member? Do you have any
additional advice regarding this issue?

Thanks in advance,

Evaristo




____________________________________________________________________________________
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Kshitiz Saxena
Re: Glassfish Cluster and Hardware Load Balancer
Posted: Sep 27, 2007 12:35 AM   in response to: Evaristo José ...
  Click to reply to this thread Reply

Hi Evaristo,

This option of hardware load-balancer doing round-robin will work with
Glassfish v2, but it will have huge performance impact as session will
keep moving from one instance to another. So as you mentioned, hardware
load-balancer should maintain stickiness with respect to session.

In case hardware load-balancer is not able to achieve that, please use
load-balancer plugin available with Glassfish v2. Refer to blog
http://blogs.sun.com/pjjairath/entry/installing_and_configuring_glassfish_http
for more details.

You can create multi-tier deployment. Bottommost tier is glassfish
instances cluster serving the request. Above that is webserver tier with
load-balancer plugin, to load-balancer request to glassfish cluster.
Topmost if hardware load-balancer, which send request to webserver-tier
in round-robin fashion.

Thanks,
Kshitiz

Evaristo José Camarero wrote:
> Hi:
>
> We are in the process to migrate a cluster JEE
> application from Tomcat 5.5.x to Glassfish.
>
> Tomcat 5.5.x uses and all-to-all (problems to scale,
> by the way) in memory session replication strategy
> that allows that all the cluster members have a copy
> on the HttpSession. Taken that into account we have
> configured the Hardware Load Balancer in a round robin
> way
>
> Our intention is to employ Glassfish memory
> replication for clustering HttpSession’s. Glassfish
> does not make a copy of the session in all cluster
> nodes, so what is the optimum configuration for the
> Load Balancer. Is it better to configure it to allow
> that all the requests in a single session should be
> managed by the same cluster member? Do you have any
> additional advice regarding this issue?
>
> Thanks in advance,
>
> Evaristo
>
>
>
>
> ____________________________________________________________________________________
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> http://advision.webevents.yahoo.com/reto/entretenimiento.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Pankaj Jairath
Re: Glassfish Cluster and Hardware Load Balancer
Posted: Sep 27, 2007 1:08 AM   in response to: Evaristo José ...
  Click to reply to this thread Reply

Hello Evaristo,

What kind of h/w load balancer are you using. I am not sure it provides
stickiness - requests to the same http session should be
directed/forwarded to the same backend cluster member.

I would suggest you try using the s/w Load Balancer support available
with GlassFish V2. This provides (apart from other features) stickiness
of http requests serviced by the application cluster.

There is a draft available on setting up the HTTP Load Balancer, which
is open for review, at the following location -
https://glassfish.dev.java.net/javaee5/docs/DocsIndex.html#Documentation_Drafts.

Checkout the "High Availability Administration Guide" chapter
"Configuring Web Servers for Load Balancing".

regards
Pankaj

Evaristo José Camarero wrote:
> Hi:
>
> We are in the process to migrate a cluster JEE
> application from Tomcat 5.5.x to Glassfish.
>
> Tomcat 5.5.x uses and all-to-all (problems to scale,
> by the way) in memory session replication strategy
> that allows that all the cluster members have a copy
> on the HttpSession. Taken that into account we have
> configured the Hardware Load Balancer in a round robin
> way
>
> Our intention is to employ Glassfish memory
> replication for clustering HttpSession’s. Glassfish
> does not make a copy of the session in all cluster
> nodes, so what is the optimum configuration for the
> Load Balancer. Is it better to configure it to allow
> that all the requests in a single session should be
> managed by the same cluster member? Do you have any
> additional advice regarding this issue?
>
> Thanks in advance,
>
> Evaristo
>
>
>
>
> ____________________________________________________________________________________
> Sé un Mejor Amante del Cine
> ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
> http://advision.webevents.yahoo.com/reto/entretenimiento.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


Evaristo José ...
Re: Glassfish Cluster and Hardware Load Balancer
Posted: Sep 27, 2007 2:29 AM   in response to: Pankaj Jairath
  Click to reply to this thread Reply


Hello Pankaj:

The HW Load Balancer it is F5 Big IP. It has worked
fine until now for us, so I guess we will mantain. It
provides sticky connections, so I guess that I could
configure in the right way. In fact, I have found this
blog, that provides a possible configuration

http://blogs.sun.com/sv96363/entry/setting_up_big_ip_v4

Thanks for you answer.

Regards,

Evaristo


--- Pankaj Jairath <Pankaj.Jairath@Sun.COM> escribió:

> Hello Evaristo,
>
> What kind of h/w load balancer are you using. I am
> not sure it provides
> stickiness - requests to the same http session
> should be
> directed/forwarded to the same backend cluster
> member.
>
> I would suggest you try using the s/w Load Balancer
> support available
> with GlassFish V2. This provides (apart from other
> features) stickiness
> of http requests serviced by the application
> cluster.
>
> There is a draft available on setting up the HTTP
> Load Balancer, which
> is open for review, at the following location -
>
https://glassfish.dev.java.net/javaee5/docs/DocsIndex.html#Documentation_Drafts.
>
> Checkout the "High Availability Administration
> Guide" chapter
> "Configuring Web Servers for Load Balancing".
>
> regards
> Pankaj
>
> Evaristo José Camarero wrote:
> > Hi:
> >
> > We are in the process to migrate a cluster JEE
> > application from Tomcat 5.5.x to Glassfish.
> >
> > Tomcat 5.5.x uses and all-to-all (problems to
> scale,
> > by the way) in memory session replication strategy
> > that allows that all the cluster members have a
> copy
> > on the HttpSession. Taken that into account we
> have
> > configured the Hardware Load Balancer in a round
> robin
> > way
> >
> > Our intention is to employ Glassfish memory
> > replication for clustering HttpSessionÂ’s.
> Glassfish
> > does not make a copy of the session in all cluster
> > nodes, so what is the optimum configuration for
> the
> > Load Balancer. Is it better to configure it to
> allow
> > that all the requests in a single session should
> be
> > managed by the same cluster member? Do you have
> any
> > additional advice regarding this issue?
> >
> > Thanks in advance,
> >
> > Evaristo
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Sé un Mejor Amante del Cine
>
> > ¿Quieres saber cómo? ¡Deja que otras personas te
> ayuden!
> >
>
http://advision.webevents.yahoo.com/reto/entretenimiento.html
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> > For additional commands, e-mail:
> users-help@glassfish.dev.java.net
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail:
> users-help@glassfish.dev.java.net
>
>




____________________________________________________________________________________
Sé un Mejor Amante del Cine
¿Quieres saber cómo? ¡Deja que otras personas te ayuden!
http://advision.webevents.yahoo.com/reto/entretenimiento.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


ai109478

Posts: 50
Re: Glassfish Cluster and Hardware Load Balancer
Posted: Sep 27, 2007 5:07 PM   in response to: Evaristo José ...
  Click to reply to this thread Reply

Some of the clustering and loadbalancing questions are answered in the GlassFish FAQ:
http://wiki.glassfish.java.net/Wiki.jsp?page=GlassFishUserFAQ#section-GlassFishUserFAQ-Clustering

Please feel free to contribute to this. Thanks.

--Nazrul




 XML java.net RSS