You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ashok V <as...@gmail.com> on 2007/03/06 05:48:55 UTC

[users@httpd] mod_jk2 and stickysession

Hi,

I am using mod_jk2 for load balancing. I have configured two tomcat machines
in worker2.properties file. The issue is that I do not want the client
sessions to be sticky. If I set the value of stickySession to 1, all
requests from a particular client is routed to the same server. If I set the
value to 0, the session state is not maintained in both the servers, and I
cannot run the application. Has anybody come across similar situation. Any
suggestions would be most welcome.

Re: [users@httpd] mod_jk2 and stickysession

Posted by Bindul Bhowmik <bi...@gmail.com>.
Hello Ashok,

On 3/5/07, Ashok V <as...@gmail.com> wrote:
> Hi,
>
> I am using mod_jk2 for load balancing. I have configured two tomcat machines
> in worker2.properties file. The issue is that I do not want the client
> sessions to be sticky. If I set the value of stickySession to 1, all
> requests from a particular client is routed to the same server. If I set the
> value to 0, the session state is not maintained in both the servers, and I
> cannot run the application. Has anybody come across similar situation. Any
> suggestions would be most welcome.

To maintain the same session state in multiple servers, you will have
to replicate sessions across the servers. Sticky sessions don't
perform session replication. If you are using Tomcat 5.5 and above,
you can use Tomcat Clustering / Session Replication [1][2][3]. Tomcat
5.0 has limited cluster support.

HTH
Bindul

[1] http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
[2] http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html
[3] http://tomcat.apache.org/faq/cluster.html
-- 
Bindul Bhowmik
MindTree Consulting Ltd.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org