global_defs { notification_email { [email Protected]}notification_email_from [email protected]smtp_server smtp.mail.sina.comsmtp_connect_ Timeout 30router_id lvs1} vrrp_sync_group test {group {loadbalance}} vrrp_ Instance loadbalance {state masterinterface eth0lvs_sync_daemon_inteface eth0virtual_ Router_id 51priority 180advert_int 1 authentication {auth_type passauth_pass 1111} virtual_ipaddress {192.168.100.101 dev eth0 label eth0:1}} Virtual_server 192.168.100.101 3306 {delay_loop 6lb_algo rrlb_kind drpersistence _timeout 20protocol tcpsorry_server 192.168.100.48 3306real_server 192.168.100.47 3306 {weight 3tcp_check {connect_timeout 3nb_get_retry 3delay_before_retry 3connect_port 3306}}}
This article is from the "light meal state-Octopus" blog, please make sure to keep this source http://daiyiyi.blog.51cto.com/2358701/1770649
MySQL High availability Explore (ii) Lvs+keepalived+mysql single-point write master synchronization high Availability scheme