! Configuration File for keepalived # Distributed storage - GlusterFS vrrp_instance INT_GLUSTERFSD { interface eth0 state MASTER virtual_router_id 1 priority 10 advert_int 1 authentication { auth_type PASS auth_pass *secret* } virtual_ipaddress { 192.168.0.3 } } virtual_server 192.168.0.3 6996 { delay_loop 1 lb_algo wrr lb_kind DR persistence_granularity 255.255.255.255 protocol TCP real_server 127.0.0.1 6996 { weight 10 notify_down "/etc/init.d/glusterfsd stop ; /etc/init.d/glusterfsd start" MISC_CHECK { misc_path "/scripts/check-glusterfsd.pl 127.0.0.1 6996 1" } } real_server 192.168.0.1 6996 { weight 1 MISC_CHECK { misc_path "/scripts/check-glusterfsd.pl 192.168.0.1 6996 1" } } real_server 192.168.0.2 6996 { weight 1 MISC_CHECK { misc_path "/scripts/check-glusterfsd.pl 192.168.0.2 6996 1" } } }