aspose file tools*
The moose likes Tomcat and the fly likes tomcat cross cluster communication problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat cross cluster communication problems" Watch "tomcat cross cluster communication problems" New topic
Author

tomcat cross cluster communication problems

Chris Cerda
Greenhorn

Joined: Apr 08, 2011
Posts: 1
Hi, first time posting here, but been using tomcat for a few years now.

I am running into an issue where I have 2 tomcat clusters setup, completely different servers, but for some reason, when I start memberA of clusterB, it see's memberA of clusterA and adds it as a replication node. This should not be happening, and I can't figure out why it is happening.

the setup is each cluster has 2 members in it.
Here is the snippet from the server.xml from memberA of clusterB.


On server startup, catalina.out:
INFO: Replication member addedrg.apache.catalina.tribes.membership.MemberImpl[tcp://{11,11, 111, 12}:4000,{10, 27, 101, 37},4000, alive=8483725,id={-30 70 -54 46 -65 -127 76 -81 -110 104 -27 -90 35 39 124 -2 }, payload={}, command={}, domain={}, ]
The IP above, I obviously changed, but it is the IP of memberA of clusterA.

memberA - clusterA server.xml


As you can see the address and ports are completely different. Also, one weird thing, for some reason the server.xml is defined to have hte receiver port as 4000, but when I do a netstat I can see that it is listening on port 4000(which is the port that memberA clusterB is connecting to, even though neither server.xml's are stating to use port 4000)

And then even more weird, when I stop memberA on clusterB, I see the below in the logs of memberA of clusterA

INFO: Verification complete. Member already disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4000,{127, 0, 0, 1},4000, alive=14572,id={-29 108 -54 -119 -110 -29 65 -128 -93 6 -104 27 -51 -106 56 51 }, payload={}, command={66 65 66 89 45 65 76 69 88 ...(9)}, domain={}, ]]

Maybe I'm missing something very easy, but I"ve been digging for a couple hours now to no avail.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat cross cluster communication problems
 
Similar Threads
Tomcat and apache configuration in debian
Tomcat 6.0.X (could be 18, 26 or 32 tried all 3)
Session replication with Tomcat 6
Tomcat session replication on failover in a cluster
Tomcat 6 Cluster Woes