You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kavitha ranga <ka...@hotmail.com> on 2003/03/20 19:09:40 UTC

Load balancing and Sticky sessions

Hello,
   I have Apache and 2 tomcats running on 2 separate servers which are in a 
cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using 
load balancing.I am losing my session variables when there is a switch 
between the 2 tomcats. Any help is greatly appreciated.

thanks in advance,
Kavitha





_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Load balancing and Sticky sessions

Posted by Filip Hanik <ma...@filip.net>.
Hi Ben,
session replication is working for Tomcat 5, and I have back ported a
version to tomcat 4.1.x
http://www.filip.net/tomcat-clustering.html

Filip

-----Original Message-----
From: Ben Ricker [mailto:bricker@wellinx.com]
Sent: Thursday, March 20, 2003 10:18 AM
To: Tomcat Users List
Subject: Re: Load balancing and Sticky sessions


Unless you have session replication going on between the two Tomcats (or
are running Tomcat 5...doubtful since it is in its infant stages), you
will always lose your session if you get sent from one Tomcat to
another.

Ben Ricker


On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote:
> Hello,
>    I have Apache and 2 tomcats running on 2 separate servers which are in
a
> cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using
> load balancing.I am losing my session variables when there is a switch
> between the 2 tomcats. Any help is greatly appreciated.
>
> thanks in advance,
> Kavitha
>
>
>
>
>
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
--
Ben Ricker <br...@wellinx.com>
Wellinx.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Load balancing and Sticky sessions

Posted by Ben Ricker <br...@wellinx.com>.
Unless you have session replication going on between the two Tomcats (or
are running Tomcat 5...doubtful since it is in its infant stages), you
will always lose your session if you get sent from one Tomcat to
another.

Ben Ricker


On Thu, 2003-03-20 at 12:09, Kavitha ranga wrote:
> Hello,
>    I have Apache and 2 tomcats running on 2 separate servers which are in a 
> cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using 
> load balancing.I am losing my session variables when there is a switch 
> between the 2 tomcats. Any help is greatly appreciated.
> 
> thanks in advance,
> Kavitha
> 
> 
> 
> 
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
-- 
Ben Ricker <br...@wellinx.com>
Wellinx.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Load balancing and Sticky sessions

Posted by Filip Hanik <ma...@filip.net>.
Hi Kavita,
what clustering library are you using.
There are several options that we can offer you to do.

1. Try the clustering that is going to ship with Tomcat 4,
http://www.filip.net/tomcat-clustering.html

2. Take out Apache out of the equation to make sure your clustering is
working clustering.
At the end of the page that I mentioned above, there is a Java loadbalancer
for testing (do not use this in production :) that you can use to test out
session replication.

Once you've done that, feel free to send your logs so that we can help you
determine the rest of your problems

Filip

-----Original Message-----
From: Kavitha ranga [mailto:kavitharanga@hotmail.com]
Sent: Thursday, March 20, 2003 10:10 AM
To: tomcat-user@jakarta.apache.org
Subject: Load balancing and Sticky sessions


Hello,
   I have Apache and 2 tomcats running on 2 separate servers which are in a
cluster. I am running Tomcat 4.0(using ajp13) via mod_jk. I am also using
load balancing.I am losing my session variables when there is a switch
between the 2 tomcats. Any help is greatly appreciated.

thanks in advance,
Kavitha





_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org