(01)Install Keepalived
Linux
1sudo apt-get install -y keepalived2sudo systemctl enable keepalivedHigh availability with VRRP floating IP failover
What is this?
Keepalived provides a floating IP that moves to a backup server if the primary fails.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/keepalived/keepalived.confLocation: Keepalived node
VRRP virtual IP and health checks
Step 01
1sudo apt-get install -y keepalived2sudo systemctl enable keepalivedStep 02
1sudo nano /etc/keepalived/keepalived.conf2# Configure virtual_ipaddress and priority3sudo systemctl start keepalivedStep 03
1ip addr show | grep inet2sudo systemctl status keepalived