故障现象:
俩台服务器jboss做的Apache群集,之前优先访问A,造成大量session都在A上有报警。
调整
调整Apache 配置jboss集群参数,将Node2的worker.node2.lbfactor由2调整为1
和node1相同。因为之前发现大量session都在node1上
/usr/local/apache/conf/workers.properties
# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.reference=worker.template
worker.node2.host=10.2.1.12
worker.node2.port=8009
worker.node2.lbfactor=1
参考:
Apache+tomcat集群和负载均衡(httpd.conf,workers.properties,uriworkermap.properties)-学PHP
http://www.xuephp.com/main/detail.php?cid=40711