Is Tomcat Shared Session / Cluster between two machine possible?

Posted by Snorri on Server Fault See other posts from Server Fault or by Snorri
Published on 2010-04-07T14:27:28Z Indexed on 2012/06/13 4:42 UTC
Read the original article Hit count: 440

Filed under:
|
|

I have a setup of several Tomcat servers distributed between a few servers, all running the same thing. Apache is on top of Apache and a loadbalancer in front of the Apache servers. I want to cluster the Tomcats using Shared Session to minimize downtime and user interruption while deploying apps.

I know clustering works within the same server but is it possible to setup Tomcat in a way that it shares sessions between servers on different machines?

=> Server 1
==> Apache 1
===> Tomcat 1

=> Server 2
==> Apache 2
===> Tomcat 2

When Server/Tomcat 1 would be taken down, users and their sessions would transfer over to Server/Tomcat 2 and vice versa.

© Server Fault or respective owner

Related posts about tomcat

Related posts about clustering