apache + weblogic負載均衡的兩種配置
阿新 • • 發佈:2019-01-26
<proxy balancer://clusterA>
BalancerMember http://192.168.0.9:8001/serviceA loadfactor=1 route=ifc01 smax=5 max=20 ttl=120 retry=300 timeout=15
BalancerMember http://192.168.0.9:8002/serviceA loadfactor=1 route=ifc02 smax=5 max=20 ttl=120 retry=300 timeout=15
# status=+H為配置熱備,當所有機器都over時,才會請求該機器
#BalancerMember http://192.168.1.218:8009 status=+H
ProxySet lbmethod=bytraffic
</proxy>
#叢集B,將serviceA負載均衡到8003和8004上
<proxy balancer://clusterB>
BalancerMember http://192.168.0.9:8003/serviceB loadfactor=1 route=app01 smax=5 max=20 ttl=120 retry=300 timeout=15
BalancerMember http://192.168.0.9:8004/serviceB loadfactor=1 route=app02 smax=5 max=20 ttl=120 retry=300 timeout=15
# status=+H為配置熱備,當所有機器都over時,才會請求該機器
#BalancerMember http://192.168.1.218:8009 status=+H
ProxySet lbmethod=bytraffic
</proxy>
BalancerMember http://192.168.0.9:8001/serviceA loadfactor=1 route=ifc01 smax=5 max=20 ttl=120 retry=300 timeout=15
BalancerMember http://192.168.0.9:8002/serviceA loadfactor=1 route=ifc02 smax=5 max=20 ttl=120 retry=300 timeout=15
# status=+H為配置熱備,當所有機器都over時,才會請求該機器
#BalancerMember http://192.168.1.218:8009 status=+H
ProxySet lbmethod=bytraffic
</proxy>
#叢集B,將serviceA負載均衡到8003和8004上
<proxy balancer://clusterB>
BalancerMember http://192.168.0.9:8003/serviceB loadfactor=1 route=app01 smax=5 max=20 ttl=120 retry=300 timeout=15
BalancerMember http://192.168.0.9:8004/serviceB loadfactor=1 route=app02 smax=5 max=20 ttl=120 retry=300 timeout=15
# status=+H為配置熱備,當所有機器都over時,才會請求該機器
#BalancerMember http://192.168.1.218:8009 status=+H
ProxySet lbmethod=bytraffic
</proxy>