-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Tim,

On 1/10/19 08:30, Tim K wrote:
> On Wed, Jan 9, 2019, 2:16 PM Christopher Schultz < 
> ch...@christopherschultz.net wrote:
> 
> Tim,
> 
> On 1/9/19 10:39, Tim K wrote:
>>>> I'm trying to split 4 separate tomcat instances into 2
>>>> clusters (2x2) to try and avoid the all-to-all traffic, but
>>>> even when setting up the Receiver and Static members to only
>>>> speak to 1 other instance, some still seems to find and add
>>>> the other members outside of the defined config to the wrong
>>>> cluster.  I read that mcast is still used when you have
>>>> StaticMembers, could that be causing this issue?
> 
> Multicast is only used for membership, so if you are using static, 
> there should be no multicast.
> 
> Do you want to post your configuration(s)?
> 
> -chris
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> Essentially I'm trying to have server1 and server2 only in cluster1
> and server3 and server4 in only cluster2, but for some reason,
> members are getting added to clusters that they aren't configured
> for.
> 
> 
> 
> server1 config:
> 
> <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.PooledParallelSend
er"/>
>
>  </Sender>
> 
> <Interceptor 
> className="org.apache.catalina.tribes.group.interceptors.EncryptInterc
eptor"
>
> 
encryptionKey="****Removed****" />
> 
> <Interceptor 
> className="org.apache.catalina.tribes.group.interceptors.TcpPingInterc
eptor"/>
>
>  <Interceptor 
> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDet
ector"/>
>
>  <Interceptor 
> className="org.apache.catalina.tribes.group.interceptors.MessageDispat
chInterceptor"/>
>
>  <Interceptor 
> className="org.apache.catalina.tribes.group.interceptors.StaticMembers
hipInterceptor">
>
>  <Member 
> className="org.apache.catalina.tribes.membership.StaticMember" 
> host="server2" port="4000" domain="cluster1" 
> uniqueId="{1,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>
> 
> 
> 
> server2 [everything the same except the <Member/> is]:
> 
> <Member
> className="org.apache.catalina.tribes.membership.StaticMember" 
> host="server1" port="4000" domain="cluster1" 
> uniqueId="{0,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>
> 
> 
> 
> server3 [everything the same except the <Member/> is]:
> 
> <Member
> className="org.apache.catalina.tribes.membership.StaticMember" 
> host="server4" port="4000" domain="cluster2" 
> uniqueId="{4,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>
> 
> 
> 
> server4 [everything the same except the <Member/> is]:
> 
> <Member
> className="org.apache.catalina.tribes.membership.StaticMember" 
> host="server3" port="4000" domain="cluster2" 
> uniqueId="{3,0,2,3,4,5,6,7,8,9,10,11,12,13,14,15}"/>

I don't see any <Membership> element in your configuration. I think
you are missing this:

http://tomcat.apache.org/tomcat-9.0-doc/config/cluster-membership.html#S
tatic_Membership_Attributes

The documentation for the static membership interceptor doesn't seem
to mention that the <Membership> element is required as well. There is
definitely an opportunity to improve some of the documentation in this
area.

(It's also theoretically possible for the cluster setup to perform a
sanity-check; if you have configured a StaticMembershipInterceptor,
you'd better have a StaticMembership <Membership> manager to go with
it. I'm not clear on why they are separate things that can even be
configured separately/improperly.)

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlw9H2sACgkQHPApP6U8
pFhPvxAArChTzGql18fvxrikxcxhrj9XyZfs4yy/gCPRKOoZb93pNh/rK3TiLApP
JSDdk6ZCMck7OciiMa7gp+QNPXA5IZf/oOrluZWTJgw72sMrq4WVWFjB3DDmQd1f
DZKSnQ9HE4nYo+n5QuX4Mu0uscaUVC2bfRhTzhmITcgqgoy52AS+DPJivXGbX52m
SnT+QyoYeYnTM500S8IT/nDeiwefEaQ5eKnq7yRQ19c7PTUPOZAlRQ80cI7lH7LC
96XxXKLdH0cLTZUBC7jvCG3mpSiBxdwHQIL7buyePdaMhIjEYsAyqeoCRjKDbt0V
rAorXY0my02QASZfnJbmQ5DK6ifPyTBlwFRbl/Y0HJF/4jYSh5ZlFiNFAWPiXupR
MlOTxQ9AdV/MAlKRxZZbLtGNM0eQDLcsaPOrL/5EaQgStWjfdifref2Cg9Wb1bEx
w1YbrdVPHUimmy5p5BytMkMQKNzeFpZlQnnt/ejD8vXYjaLvjDN/ruBSzpEeSNSR
mtMqYCk3fQiP3q54PAmL12hRjR7r6mXN1TWaFRDBEJsRI1MguNQUVLO36Y6Bxq9W
Yi+CwB+HiDRbnTlTafFtuR+ScuR1HZZBlkC+3CKdVt1R62mw7T2KPeXUGWL1c1xs
r5zPOHxPvOI1IfCo80FD55L3yZjsLExG0S9373pLx5iG9FfElnE=
=+EcZ
-----END PGP SIGNATURE-----

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

Reply via email to