SFTP (CrushFTP)with HA

Services to be used
Keepalived
CrushFTP
crontab
CrushFTP
Install CrushFTP using this tutorial
Setup HA using Keepalived
/---> SF1 [active]
/ |
/ |
Service request ----> Virtual IP (VRRP)
. |
. |
. . > SF2 [passive]
Lets configure HA
Hostname
IP
Role
SF1
192.168.4.231
Master
SF2
192.168.4.232
Slave
VIP
192.168.4.235
VIP
type ip a
in terminal to find IP address of you hosts, install below mentioned packages in your servers.
sudo yum update
sudo yum install keepalived
sudo yum install libipset13
edit your config, I am using nano as editor because I am using Ubuntu.
sudo nano /etc/keepalived/keepalived.conf
First node
vrrp_instance VI_1 {
state MASTER
interface
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
}
virtual_ipaddress {
192.168.4.235/24
}
}
Second node
vrrp_instance VI_1 {
state BACKUP
interface
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
}
virtual_ipaddress {
192.168.4.235/24
}
}
Start and enable the service
sudo systemctl enable --now keepalived.service
Stopping the service
sudo systemctl stop keepalived.service
Starting the service
sudo systemctl start keepalived.service
get the status
sudo systemctl status keepalived.service
Last updated
Was this helpful?