You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrew Hole <an...@gmail.com> on 2008/11/21 20:02:51 UTC
Session affinity
Hi guys!
The session affinity in Apache guarantee that all requests from a
specific browser will be redirected to the same instance of Tomcat (worker).
How it works when we have an hardware load balancer in the first layer and 2
actives Apache HTTP Server?
Thanks a lot
Re: Session affinity
Posted by Mark Thomas <ma...@apache.org>.
Caldarale, Charles R wrote:
>> From: Andrew Hole [mailto:andremailinglist@gmail.com]
>> Subject: Re: Session affinity
>>
>> Is not very smart... There is some problem with that?
>
> I think so - without some intelligence in the load balancer, I don't think you can maintain session affinity.
>
> - Chuck
Even the dumb ones should let you do it based on client IP. If it doesn't
even allow that - bin it.
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Session affinity
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chuck,
Caldarale, Charles R wrote:
>> From: Andrew Hole [mailto:andremailinglist@gmail.com] Subject: Re:
>> Session affinity
>>
>> Is not very smart... There is some problem with that?
>
> I think so - without some intelligence in the load balancer, I don't
> think you can maintain session affinity.
I worked (at arm's length) with BigIP load balancers and Weblogic at a
client a long time ago (6 years or so) and they all worked as expected
wrt server affinity. They either used the JSESSIONID cookie/URL
parameter or they just added their own cookie that indicated to the lb
which server "belonged" to the client.
This technique should work with Tomcat (or any other server for that
matter) as well.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkk0MkcACgkQ9CaO5/Lv0PDIHQCgjCQixCr8XDcY/rzrwc/ArxVI
tGoAnRKPtc6OxQB66d1ksYrksx2D8Zj3
=Zlaf
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Session affinity
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Andrew Hole [mailto:andremailinglist@gmail.com]
> Subject: Re: Session affinity
>
> Is not very smart... There is some problem with that?
I think so - without some intelligence in the load balancer, I don't think you can maintain session affinity.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Session affinity
Posted by Andrew Hole <an...@gmail.com>.
Is not very smart... There is some problem with that?
Thanks
On Fri, Nov 21, 2008 at 9:00 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:
> > From: Andrew Hole [mailto:andremailinglist@gmail.com]
> > Subject: Session affinity
> >
> > How it works when we have an hardware load balancer in the
> > first layer and 2 actives Apache HTTP Server?
>
> How smart is your load balancer? Can it be configured to route requests
> based on content of the HTTP message (i.e., the JSESSIONID cookie value)?
> (That's probably asking a lot of a balancer.)
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
RE: Session affinity
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Andrew Hole [mailto:andremailinglist@gmail.com]
> Subject: Session affinity
>
> How it works when we have an hardware load balancer in the
> first layer and 2 actives Apache HTTP Server?
How smart is your load balancer? Can it be configured to route requests based on content of the HTTP message (i.e., the JSESSIONID cookie value)? (That's probably asking a lot of a balancer.)
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org