tomcat7 session replication doesn't work under docker swarm mode
I run two tomcat containers. Then I followed tomcat official guide to do the tomcat session replication. I just followed this link: http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html
I have to say, there is nothing special on configuration. I just used the most simplest configuration for most easy scenario.
Before I changed the deployment environment into docker swarm mode, everything worked very well. Under swarm mode environment, bundles seems can not found other memberships.
Moreover I did another try that I shutdown the firewall of docker host machine. After I did this , I found session replication worked again even though under swarm mode. I feel this is a network issue. But I don’t know how to solve it.
Does anyone who has the same experience. Please tell me how to implement tomcat session replication under docker swarm mode.