【问题标题】:No active members in the cluster group in tomcattomcat的集群组中没有活动成员
【发布时间】:2014-04-22 13:08:31
【问题描述】:

我在两台 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>

如果我缺少一些配置,请提出建议。 提前感谢您的任何建议 比布

【问题讨论】:

    标签: tomcat cluster-computing


    【解决方案1】:

    部落组的地址不好看:address="111.222.222" port="64222"。那既不是有效的 IPv4 也不是有效的端口 (>64k)。使用这样的东西;您可以在manual 中找到什么:

    address="228.0.0.4"
    port="45564"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多