Post by Christopher SchultzCan you post your configuration(s)? Presumably, all 4 are nearly
identical. Please post one of them (minus any secrets) and describe or
copy/paste the differences for the other notes.
- -chris
Here is my cluster config that I got working, all 4 nodes can talk to each
other after I added them as StaticMembers (without this, the mcast appeared
that 2 of them would pair up with each other).
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="auto" port="4000" autoBind="100" selectorTimeout="5000"
maxThreads="6"/>
<Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
</Sender>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor"/>
<Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
<Member
className="org.apache.catalina.tribes.membership.StaticMember"
securePort="-1" port="4000" host="X.X.X.90" domain="dblue-cluster"
uniqueId="{1,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>
<Member
className="org.apache.catalina.tribes.membership.StaticMember"
securePort="-1" port="4000" host="X.X.X.91" domain="dblue-cluster"
uniqueId="{2,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>
<Member
className="org.apache.catalina.tribes.membership.StaticMember"
securePort="-1" port="4000" host="X.X.X.92" domain="dblue-cluster"
uniqueId="{3,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>
</Interceptor>
</Channel>
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
<ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
</Cluster>
I now was interested in setting these up with SSL (securePorts), so for
both the NioReceiver and the StaticMember(s), I removed port="4000" in
favor of securePort="4000" (I did replace the securePort="-1" in the
StaticMembers). In doing this and starting them all up, it appears to act
the same as it did with mcast without StaticMembers, 2 of them pair up
instead of all 4 joining the single cluster. I don't understand why this
is happening.