Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
A.3. Install and Configure keepalived
Perform the following procedure on your two HAProxy nodes:
- Install keepalived.
yum install -y keepalived
# yum install -y keepalived
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure keepalived.
vim /etc/keepalived/keepalived.conf
# vim /etc/keepalived/keepalived.conf
Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the following configuration, there is a script to check the HAProxy processes. The instance useseth0
as the network interface and configureshaproxy
as the master server andhaproxy2
as the backup server. It also assigns a virtual IP address of 192.168.0.100.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enable and start keepalived.
systemctl enable keepalived systemctl start keepalived
# systemctl enable keepalived # systemctl start keepalived
Copy to Clipboard Copied! Toggle word wrap Toggle overflow