我在两台diff机器tomcat服务器上进行简单的集群配置。 每次我启动tomcat时,我都会收到类似群集组中没有活动成员的错误。 我正在附加群集配置
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
<Manager className="org.apache.catalina.ha.session.DeltaManager"
expireSessionsOnShutdown="false" sendAllSessions="true"
notifyListenersOnReplication="true"/>
<Channel className="org.apache.catalina.tribes.group.GroupChannel">
<Membership className="org.apache.catalina.tribes.membership.McastService"
address="111.222.222"
port="64222"
frequency="500"
dropTime="3000"/>
<Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
address="auto"
port="6000"
autoBind="100"
selectorTimeout="5000"
maxThreads="6"/>
<Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" timeout="30000"/>
</Sender>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
<Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
<!-- <Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>-->
</Channel>
<!--<Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.
htm;.*\.html;.*\.css;.*\.txt;"/> -->
<Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.
htm;.*\.html;.*\.css;.*\.txt;" />
<Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
<ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
<ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
</Cluster>
如果我正在调整某些配置,请建议。 提前感谢任何建议 Bibhu
答案 0 :(得分:0)
部落群的地址看起来并不好:地址=&#34; 111.222.222&#34;端口=&#34; 64222&#34 ;.这既不是有效的IPv4也不是有效的端口(> 64k)。使用这样的东西;你可以在manual中找到什么:
address="228.0.0.4"
port="45564"