首页 > 数据库技术 > 详细

mysql高可用探究(二)Lvs+Keepalived+Mysql单点写入主主同步高可用方案

时间:2016-05-06 16:30:55      阅读:253      评论:0      收藏:0      [点我收藏+]
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单点写入主主同步高可用方案

原文:http://daiyiyi.blog.51cto.com/2358701/1770649

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!