Demo Device: Physical machine win7, virtual machine CentOS 7
dr1:node1,172.18.11.111
dr2:node2,172.18.11.112
vip:172.18.11.200
rs1:172.18.11.11
rs2:172.18.11.12
To configure a highly available cluster:
operate on the DR
]# yum-y Install Pacemaker
]# Yum Install ldirectord-3.9.6-0rc1.1.1.x86_64.rpm
]# Systemctl Enable Ldirectord.service
The configuration results are as follows:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/82/22/wKiom1dMOrHxeY7iAABuuCppIi4886.png "title=" 1.png " alt= "Wkiom1dmorhxey7iaabuucppii4886.png"/>
The corresponding configuration of LVS-DR is done on two RS:
Can script execution:
]# Vim skp.sh
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/82/21/wKioL1dMO8yhfTTGAABiY6OBQ40061.png "style=" float: none; "title=" 2.png "alt=" Wkiol1dmo8yhfttgaabiy6obq40061.png "/>
]#./skp.sh Start
After setting up the LVS-DR configuration, provide the Web test page:
Start the Web service;
In the browser input: 172.18.11.200
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/22/wKiom1dMOtGBq4UrAAA_dy2caDc485.png "style=" float: none; "title=" 3.png "alt=" Wkiom1dmotgbq4uraaa_dy2cadc485.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/82/21/wKioL1dMO83x0bZkAABA0ZMKcbo831.png "style=" float: none; "title=" 4.png "alt=" Wkiol1dmo83x0bzkaaba0zmkcbo831.png "/>
when any one of the hosts falls off the line, RS Any one of the host dropped the line, Web Services can provide user access. Thus implemented, based on the Ldirectord high Availability LVS-DR scheduler.
A brief introduction to the highly available LVS-DR scheduler based on Ldirectord