SFTP (CrushFTP)with HA
Last updated
Last updated
/---> SF1 [active]
/ |
/ |
Service request ----> Virtual IP (VRRP)
. |
. |
. . > SF2 [passive]sudo yum update
sudo yum install keepalived
sudo yum install libipset13sudo nano /etc/keepalived/keepalived.confvrrp_instance VI_1 {
state MASTER
interface ens192
virtual_router_id 55
priority 150
advert_int 1
unicast_src_ip 192.168.4.231
unicast_peer {
192.168.4.232
}
authentication {
auth_type PASS
auth_pass 5GK!Ka^4
}
virtual_ipaddress {
192.168.4.235/24
}
}vrrp_instance VI_1 {
state BACKUP
interface ens192
virtual_router_id 55
priority 100
advert_int 1
unicast_src_ip 192.168.4.232
unicast_peer {
192.168.4.231
}
authentication {
auth_type PASS
auth_pass 5GK!Ka^4
}
virtual_ipaddress {
192.168.4.235/24
}
}sudo systemctl enable --now keepalived.servicesudo systemctl stop keepalived.servicesudo systemctl start keepalived.servicesudo systemctl status keepalived.service