-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Keiichi,
On 1/15/19 04:10, Keiichi Fujino wrote: > Hi > > If you use StaticMembershipInterceptor, you must set the > Cluster#channelStartOptions to 3 to avoid starting > membershipservice. If you are using Tomcat 9, you can also use > StaticMembershipService instead of StaticMembershipInterceptor. Is there any particular reason why the cluster components don't perform sanity-checks about these kinds of things? It seems like the StaticMembershipInterceptor could inspect those options and issue warnings (or even refuse to start) if the configuration does not make sense. - -chris > 2019年1月10日(木) 22:39 Tim K <tim.k.5...@gmail.com>: > >> 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.ReplicationTransmitte r"> >> >> >> <Transport >> className="org.apache.catalina.tribes.transport.nio.PooledParallelSen der"/> >> >> >> </Sender> >> >> <Interceptor >> >> className="org.apache.catalina.tribes.group.interceptors.EncryptInter ceptor" >> >> encryptionKey="****Removed****" /> >> >> <Interceptor >> >> className="org.apache.catalina.tribes.group.interceptors.TcpPingInter ceptor"/> >> >> >> <Interceptor >> >> className="org.apache.catalina.tribes.group.interceptors.TcpFailureDe tector"/> >> >> >> <Interceptor >> >> className="org.apache.catalina.tribes.group.interceptors.MessageDispa tchInterceptor"/> >> >> >> <Interceptor >> >> className="org.apache.catalina.tribes.group.interceptors.StaticMember shipInterceptor"> >> >> >> <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}"/> >> > > -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlw96ewACgkQHPApP6U8 pFh5sxAAsdTpZFjxtH1o8ySD2vwZmS/PuKZEXCvZqsHl4IjDIsh1KnAOaE/jhm8u N80eMQmQT8oMvYvSQ43gaiCpbnrclqCHgiPa8mQE91mdDB2jzjvhS/rwuoqMn1Kh S99F6zH3WTaB8CGP4Sb6lgGRZMiuIrj2FKVXlOvuyHOq65Lm69lktc/ISQ3liC7F +S5ii2cl9NJKF+ONi2IgEg+KJZXzl8Lo76ZEIwXLECE1LZyfN3cdUt3wOoKQCEfH 88Z3kzCjjGIiOneI/2WthJMybfl1eODv7ujzx5lQIf6cOaJvuBRi0GD9DSZ4LKqg AOl5QbGos+CiugUo28bp/yaTEnzgQTa+bM/5x/VnO8ubNXqIAl/VbPCZO2CFhZAO nuTrk2h+3VFVsQozNivIKI7sx7LYa2tN14embYDxiui8lQV7H2DmegODEG+dk7OA 7N8nljPn+T4T4txBk9uBBNheQpPaYNEG/csz+8j+lubo0pMa2jLoV9qoFiXTcja0 pkUxJ9jlGmhJ0uSFJttp1vTtzdsMBcxiwBjGwYmhMmlqRURPTBi4g2jTTG9GRh4x t3gbFAWMQ5t7W5NY1KStnC4YFbdEDt372TRI+Cw32fakxsWPjBBS6ygCTI6Crc2K BQXohOlTTHnMWAbux+2Bf5fLfATQx2uW64EvROupGx8vYz5B7RU= =WI9r -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org