Apache+tomcat均衡负载配置新小结
?????????????????????????? address="228.0.0.4"
?????????????????????????? port="45564"
?????????????????????????? frequency="500"
?????????????????????????? dropTime="3000"/>
?????????????? <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"
???????????????????????? address="192.168.0.188"(多网卡需要制定ip)
???????????????????????? port="4008"(同一台机器多个tomcat,这里端口需要不同)
???????????????????????? autoBind="100"
???????????????????????? selectorTimeout="5000"
???????????????????????? maxThreads="6"/>
?????????????? <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
?????????????????? <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
?????????????? </Sender>
?????????????? <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
?????????????? <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>
????????? </Channel>
????????? <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
???????????????? filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;"/>
????????? <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>
???? </Cluster>?
?