Tomcat+Apache集群方案
韩梦飞沙 韩亚飞 313134555@qq.com yue31313 han_meng_fei_sha
# environment slash for Windows(反斜杠代表Windows系统)
ps=\
worker.retries=3
# 此处定义了一个负载均衡器和状态监视器
worker.list = controller,jkstatus
#========tomcat1========
worker.tomcat1.port=11009
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor = 1
worker.tomcatA.connection_pool_timeout=600
worker.tomcatA.socket_keepalive=true
worker.tomcatA.socket_timeout=60
#========tomcat2========
worker.tomcat2.port=12009
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor = 1
worker.tomcatA.connection_pool_timeout=600
worker.tomcatA.socket_keepalive=true
worker.tomcatA.socket_timeout=60
#========状态监视器========
worker.jkstatus.type=status
#========controller,负载均衡控制器========
worker.controller.type=lb
worker.controller.balanced_workers=tomcat1,tomcat2
worker.controller.sticky_session=true
worker.controller.sticky_session_force=false