Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1688357
  • 博文数量: 391
  • 博客积分: 8464
  • 博客等级: 中将
  • 技术积分: 4589
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-13 15:12
个人简介

狮子的雄心,骆驼的耐力,孩子的执著!

文章分类

全部博文(391)

文章存档

2023年(4)

2018年(9)

2017年(13)

2016年(18)

2014年(7)

2013年(29)

2012年(61)

2011年(49)

2010年(84)

2009年(95)

2008年(22)

分类: Java

2011-05-05 23:37:17

Tomcat-6.0.28: server.xml
........
                      channelSendOptions="8">
                             expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true"/>
         
                                    address="228.0.0.5" #如果内网存在多个集群应用,注意使用不同地址
                        port="45564"
                        frequency="500"
                        dropTime="3000"/>
                                  address="10.10.50.110"
                      port="4001"
                      port="4002"
                      autoBind="100"
                      selectorTimeout="5000"
                      maxThreads="6"/>
           
             
           

           
           
         
                           filter=""/>
         
                              tempDir="/tmp/war-temp/"
                    deployDir="/tmp/war-deploy/"
                    watchDir="/tmp/war-listen/"
                    watchEnabled="false"/>
         
       
........
     
   
 

 
Apache-2.0.22: httpd.conf
 
        ProxyRequests Off

        #ProxyPass /
        #ProxyPassReverse /
        #多tomcat应用轮循
        ProxyPass / balancer://mycluster/ stickysession=JSESSIONID nofailover=On
        ProxyPassReverse / balancer://mycluster/ #路径一定不能缺少最后的"/"标识
       
        BalancerMember ajp://127.0.0.1:8019 loadfactor=10 route=jvm1
        BalancerMember ajp://127.0.0.1:8029 loadfactor=10 route=jvm2
       
 

 
阅读(789) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~