|
Replies:
4
-
Last Post:
Sep 27, 2007 5:07 PM
by: ai109478
|
|
|
|
|
|
|
Glassfish Cluster and Hardware Load Balancer
Posted:
Sep 27, 2007 12:00 AM
|
|
|
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
|
|
|
|
|
|
|
Re: Glassfish Cluster and Hardware Load Balancer
Posted:
Sep 27, 2007 12:35 AM
in response to: Evaristo José ...
|
|
|
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
|
|
|
|
|
|
|
|
Re: Glassfish Cluster and Hardware Load Balancer
Posted:
Sep 27, 2007 1:08 AM
in response to: Evaristo José ...
|
|
|
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
|
|
|
|
|
|
|
|
Re: Glassfish Cluster and Hardware Load Balancer
Posted:
Sep 27, 2007 2:29 AM
in response to: Pankaj Jairath
|
|
|
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
|
|
|
|
|
|
|