!configuration file for keepalived global_defs { notification_email { efoni@msn.com } notification_email_from efoni@msn.com smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id LVS_DEVEL }

#vip1 vrrp_instance VI_1{ state MASTER interface eth0 lvs_sync_daemon_interface eth0 virtual_router_id 51 priority 100 advert_int 5 nopreempt authentication { auth_tpye PASS auth_pass 123456 } virtual_ipaddress { 192.168.189.288 } }

#virtual_server & real_server configuration

virtual_server 192.168.189.288 80 { delay_loop 6 lb_algo wrr lb_kind DR persistence_timeout 60 protocal TCP real_server 192.168.189.128 80 { weight 100 TCP_CHECK { connect_timeout 10 nb_get_retry 3 delay_before_retry 3 connect_port 80 } } real_server 192.168.189.129 80 { weight 100 TCP_CHECK { connect_timeout 10 nb_get_retry 3 delay_before_retry 3 connect_port 80 } } }