通过keepalive配置高可用
keepalive 配置
?
! Configuration File for keepalivedglobal_defs { notification_email { test@gmail.com } notification_email_from test@gmail.com smtp_server 192.168.2.1 smtp_connect_timeout 30 router_id LVS_DEVEL}vrrp_script check_mysql { script "/root/check_cobar.sh" interval 2 weight 10 }vrrp_instance VI_mysql2 { state MASTER interface eth0 virtual_router_id 51 priority 100 nopreempt advert_int 1 authentication { auth_type PASS auth_pass 1111 } track_script { check_mysql } virtual_ipaddress {192.168.2.67 }}?
?