You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nir A <ni...@netomedia.com> on 2013/12/29 16:11:30 UTC

Session replication does not work - Continued

Hi,
So we have 3 tomcats in our cluster and we are failing to make them
replicate our sessions still.

Our IT guy said it might has something to do with the machines of the
tomcats.

He said that since the machines the tomcats in the cluster are installed at
are Virtual machines there might be a problem on the multicast of the
replication messages.

1) Is it possible that our IT guy is right? (We love you Leon)
2) Is there any alternative to multicast the session data between the
tomcats?


Thanks!

Re: Session replication does not work - Continued

Posted by Daniel Mikusa <dm...@gopivotal.com>.
On Dec 29, 2013, at 10:11 AM, Nir A <ni...@netomedia.com> wrote:

> Hi,
> So we have 3 tomcats in our cluster and we are failing to make them
> replicate our sessions still.
> 
> Our IT guy said it might has something to do with the machines of the
> tomcats.
> 
> He said that since the machines the tomcats in the cluster are installed at
> are Virtual machines there might be a problem on the multicast of the
> replication messages.
> 
> 1) Is it possible that our IT guy is right? (We love you Leon)

By default, clustering support uses multicast to locate other Tomcat instances.  If multicast does not work or is disabled on your instances won't be able to locate each other.

Multicast is only used for locating other nodes, it is not used for the transmission of session data.  TCP is used for that.

> 2) Is there any alternative to multicast the session data between the
> tomcats?

Yes.  See static members configuration.

  http://tomcat.apache.org/tomcat-7.0-doc/config/cluster-interceptor.html#Static_Membership
  http://tomcat.apache.org/tomcat-7.0-doc/config/cluster-interceptor.html#Nested_element_StaticMember_Attributes

Dan

> 
> 
> Thanks!


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