标签:mysql lvs keepalived
global_defs { notification_email { daiyu@qingcanbang.com } notification_email_from 03070609.student@sina.com smtp_server smtp.mail.sina.com smtp_connect_timeout 30 router_id LVS1 } vrrp_sync_group test { group { loadbalance } } vrrp_instance loadbalance { state MASTER interface eth0 lvs_sync_daemon_inteface eth0 virtual_router_id 51 priority 180 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 192.168.100.101 dev eth0 label eth0:1 } } virtual_server 192.168.100.101 3306 { delay_loop 6 lb_algo rr lb_kind DR persistence_timeout 20 protocol TCP sorry_server 192.168.100.48 3306 real_server 192.168.100.47 3306 { weight 3 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 3306 } } }
本文出自 “轻餐邦-带鱼” 博客,请务必保留此出处http://daiyiyi.blog.51cto.com/2358701/1770649
mysql高可用探究(二)Lvs+Keepalived+Mysql单点写入主主同步高可用方案
标签:mysql lvs keepalived
原文地址:http://daiyiyi.blog.51cto.com/2358701/1770649