mod_jk的一点疑问
最近使用apache+mod_jk做负载均衡调用后端的四个jboss,使用LoadRunner进行压力测试时,分别试了worker.loadbalancer.method的四个参数Request,Session,Traffic,Busyness,都会出现负载不均的情况,四个jboss中,有时是两个空闲(没有连接或很少连接),有时是三个空闲。
1. 是否有朋友知道这是怎么回事?下面是我的配置文件,是否有什么问题??
2. 能否帮忙解释下那四个参数Request,Session,Traffic,Busyness分别是什么意思??
worker.porperties:
worker.list=loadbalancer,status
# Define the first node...
worker.node1.port=8009
worker.node1.host=192.168.0.11
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.local_worker=1
worker.node1.cachesize=10
# Define the 2nd node...
worker.node2.port=8009
worker.node2.host=192.168.0.12
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.local_worker=1
worker.node2.cachesize=10
# Define the 3nd node...
worker.node3.port=8009
worker.node3.host=192.168.0.13
worker.node3.type=ajp13
worker.node3.lbfactor=1
worker.node3.local_worker=1
worker.node3.cachesize=10
# Define the 3nd node...
worker.node4.port=8009
worker.node4.host=192.168.0.14
worker.node4.type=ajp13
worker.node4.lbfactor=1
worker.node4.local_worker=1
worker.node4.cachesize=10
# Now we define the load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=node1,node2,node3,node4
worker.loadbalancer.sticky_session=1
worker.status.type=status
# Request,Session,Traffic,Busyness
worker.loadbalancer.method=Traffic
版本:
httpd-2.2.10.tar.gz
tomcat-connectors-1.2.26-src.tar.gz
jboss-4.2.3.GA