我的IPVS(LVS)做负载均衡配置

less /etc/sysconfig/ipvsadm 写道
-A -t 10.2.226.209:8128 -s wrr
-a -t 10.2.226.209:8128 -r 10.2.226.40:8128 -g -w 1
-a -t 10.2.226.209:8128 -r 10.2.226.38:8128 -g -w 1
--set 60 15 15

-A -t 10.2.226.209:8127 -s wrr
-a -t 10.2.226.209:8127 -r 10.2.226.132:8127 -g -w 1
-a -t 10.2.226.209:8127 -r 10.2.226.133:8127 -g -w 1
-a -t 10.2.226.209:8127 -r 10.2.226.134:8127 -g -w 1
-a -t 10.2.226.209:8127 -r 10.2.226.135:8127 -g -w 1

-A -t 10.2.226.209:5984 -s wrr
-a -t 10.2.226.209:5984 -r 10.2.226.132:5984 -g -w 1
#-a -t 10.2.226.209:5984 -r 10.2.226.133:5984 -g -w 1

-A -t 10.2.226.209:6080 -s wrr
-a -t 10.2.226.209:6080 -r 10.2.226.132:6080 -g -w 1
-a -t 10.2.226.209:6080 -r 10.2.226.133:6080 -g -w 1
-a -t 10.2.226.209:6080 -r 10.2.226.134:6080 -g -w 1
-a -t 10.2.226.209:6080 -r 10.2.226.135:6080 -g -w 1
#-a -t 10.2.226.209:6080 -r 10.2.226.38:6081 -g -w 2
#-a -t 10.2.226.209:6080 -r 10.2.226.39:6080 -g -w 2
#-a -t 10.2.226.209:6080 -r 10.2.226.40:6080 -g -w 2

-A -t 10.2.226.209:6081 -s wrr
-a -t 10.2.226.209:6081 -r 10.2.226.132:6081 -g -w 1
-a -t 10.2.226.209:6081 -r 10.2.226.133:6081 -g -w 1
-a -t 10.2.226.209:6081 -r 10.2.226.134:6081 -g -w 1
-a -t 10.2.226.209:6081 -r 10.2.226.135:6081 -g -w 1
-a -t 10.2.226.209:6081 -r 10.2.226.38:6081 -g -w 2
-a -t 10.2.226.209:6081 -r 10.2.226.39:6081 -g -w 2
-a -t 10.2.226.209:6081 -r 10.2.226.40:6081 -g -w 2

你可能感兴趣的:(我的IPVS(LVS)做负载均衡配置)