Linux LVS(负载均衡服务器)的使用

ipvsadm -A -t 192.168.144.100:80 -s rr
ipvsadm -a -t 192.168.144.100:80 -r 192.168.144.128:80 -m
ipvsadm -a -t 192.168.144.100:80 -r 192.168.144.129:80 -m

测试结果

[root@lvs ~]# curl 192.168.144.100
<p color="red">
        Ansible Python (自动化运维测试练习)
        测试模块2
</p>
192.168.144.155
[root@lvs ~]# curl 192.168.144.100
<p color="red">
        Ansible Python (自动化运维测试练习)
        测试模块2
</p>
192.168.144.100
[root@lvs ~]# curl 192.168.144.100
<p color="red">
        Ansible Python (自动化运维测试练习)
        测试模块2
</p>
192.168.144.155
[root@lvs ~]# curl 192.168.144.100
<p color="red">
        Ansible Python (自动化运维测试练习)
        测试模块2
</p>
192.168.144.100
[root@lvs ~]# 

你可能感兴趣的:(Linux,Ansible自动化运维)