mysql主从切换后,haproxy配置咨询
Opened this issue · 2 comments
Jacklli commented
What version of MoHA are you using?
最新版
Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using?
N/A
What did you do?
What did you expect to see?
N/A
What did you see instead?
N/A
咨询一下,我的理解,当mysql发生主从切换后,agent会把最新的MySQL主从角色与ip地址对应关系写入etcd。haproxy会将写流量转发到最新的mysql主库ip地址去。我的疑惑是,haproxy通过什么机制感知到etcd里的信息变化,并且将变化准确快速地同步到haproxy的配置里去的呢?
gczheng commented
同问,haproxy 按照同样配置返回都是code: 418
liuflylove666 commented
haproxy 如何感知后端主从变化,请dbproxy有开源吗