I am trying to connect to couchbase (membase) server from tomcat to share
the sessions and am having issues. Here are the details:
F5 load balancer, 2 tomcats, 2 couchbase servers.
In case of a failover, LB routes to the active server/tomcat in the pool.
We have similar to below configuration on both the tomcat context.xml
files, necessary library files and build configs in place except that we
are using Json transcoder.
This is how we are testing it:
I have the web app open (it's a multi-page application) and the request
lands on server1 and a sessionid is created. To test the failover, I
stopped server1 and the traffic is currently flowing on server2 (as managed
by the F5 load balancer). But, I get the session expired error as this
tomcat on server2 is unable to find the session on memcache cluster.
Any idea on what I am missing here?
Thanks in advance.