安装apache作为负载均衡--集群4台tomcat 3300/s
来源:互联网 发布:龙霸网络电视破解版 编辑:程序博客网 时间:2024/04/28 06:40
mpm配置
<IfModule mpm_prefork_module>
StartServers 50
MinSpareServers 50
MaxSpareServers 100
MaxClients 1500
MaxRequestsPerChild 5000
</IfModule>
default配置
#KeepAlive On
KeepAlive Off
httpd.conf配置
#modyfied by Zhao,XingGuo (2)
ProxyPass /testTomcat7 balancer://mycluster stickysession=JSESSIONID|jsessionid scolonpathdelim=On
<Proxy balancer://mycluster>
BalancerMember http://192.168.128.139:8180/testTomcat7 route=server1
BalancerMember http://192.168.128.139:8280/testTomcat7 route=server2
BalancerMember http://192.168.128.136:8180/testTomcat7 route=server3
BalancerMember http://192.168.128.136:8280/testTomcat7 route=server4
</Proxy>
如果想看各个服务节点的情况,如状态等,按如下配置
只允许在调试阶段使用,严谨生成环境加入如下配置
#modyfied by Zhao,XingGuo (2)
#debug
<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from all
</Location>
ProxyPass /testTomcat7 balancer://mycluster stickysession=JSESSIONID|jsessionid scolonpathdelim=On
<Proxy balancer://mycluster>
BalancerMember http://192.168.128.139:8180/testTomcat7 route=server1
BalancerMember http://192.168.128.139:8280/testTomcat7 route=server2
BalancerMember http://192.168.128.136:8180/testTomcat7 route=server3
BalancerMember http://192.168.128.136:8280/testTomcat7 route=server4
</Proxy>
千万不要做热备,apache的热备简直就是个悲剧。。。。
status=+h
mpm最佳设置ServerLimit一定要在MaxClients上,如果小于250(默认),则不需要设置ServerLimit
MaxClients设置为大于250的情况,则一定要设置ServerLimit,且ServerLimit不能小于MaxClients
<IfModule mpm_prefork_module>
StartServers 200
MinSpareServers 200
MaxSpareServers 300
ServerLimit 500
MaxClients 500
MaxRequestsPerChild 8000
</IfModule>
- 安装apache作为负载均衡--集群4台tomcat 3300/s
- Apache2 + Tomcat 集群,Apache作为负载均衡
- Apache负载均衡+Tomcat集群
- Apache负载均衡+Tomcat集群
- Apache负载均衡+Tomcat集群
- apache tomcat 负载均衡 集群
- apache tomcat 负载均衡 集群
- Apache+Tomcat集群 负载均衡
- Apache 负载均衡+Tomcat集群
- Apache 负载均衡+Tomcat集群
- Apache负载均衡+Tomcat集群
- Apache+Tomcat集群 负载均衡
- Apache+Tomcat集群 负载均衡
- Apache负载均衡+Tomcat集群
- Apache负载均衡+Tomcat集群
- Apache负载均衡+Tomcat集群
- tomcat+apache负载均衡集群
- Apache 负载均衡+Tomcat集群
- myeclipse 8.6 安装Vss插件
- 长按屏幕注册与取消
- Ext.data.XmlReader解析
- ERP系统升级与集成的考验
- 团购实现oauth第三方登录
- 安装apache作为负载均衡--集群4台tomcat 3300/s
- MTK6268-FAT
- 采用smarty开发的小论坛的学习总结
- MFC 操作XML 实例 (转)
- codeblock调试跟踪新版x264
- 由PowerDesigner物理模型生成sql语句
- 带有Cookie功能的HTTP访问函数,GET,PUT/POST
- 解决visual studio2008连接oracle的问题。
- 1063 JAVA大数阶乘