keepalived and ipvsadm
I am trying to setup load balancing for smtp servers. Seemingly, the
configuration file is ok.
ipvsadm -l doesn't return anything
My keepalive.conf is
global_defs {
lvs_id LVS_1
}
vrrp_instance VI_1 {
interface eth1
state MASTER
virtual_router_id 51
priority 101 # 101 on master, 100 on backup
advert_int 1
smtp_alert
authentication {
auth_type PASS
auth_pass pass
}
virtual_ipaddress {
192.168.0.249/24 brd 192.168.0.255 dev eth0
}
VIRTUAL_SERVER 192.168.0.249 25 {
delay_loop 60
lb_algo rr
lb_kind DR
protocol TCP
persistence_timeout 360
real_server 192.168.0.245 25 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 25
nb_get_retry 3
delay_before_retry 3
}
}
real_server 192.168.0.244 25 {
weight 1
TCP_CHECK {
connect_timeout 3
connect_port 25
nb_get_retry 3
delay_before_retry 3
}
}
}
Reply to: