gpt4 book ai didi

tomcat - tomcat 中的集群组中没有事件成员

转载 作者:行者123 更新时间:2023-11-28 23:37:37 26 4
gpt4 key购买 nike

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

如果我遗漏了一些配置,请提出建议。在此先感谢您的任何建议比布

最佳答案

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

address="228.0.0.4"
port="45564"

关于tomcat - tomcat 中的集群组中没有事件成员,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23220587/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com