Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql主从切换后,haproxy配置咨询 #24

Open
Jacklli opened this issue Sep 12, 2019 · 2 comments
Open

mysql主从切换后,haproxy配置咨询 #24

Jacklli opened this issue Sep 12, 2019 · 2 comments

Comments

@Jacklli
Copy link

Jacklli commented Sep 12, 2019

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
Copy link

gczheng commented Jan 19, 2020

同问,haproxy 按照同样配置返回都是code: 418

@liuflylove666
Copy link

haproxy 如何感知后端主从变化,请dbproxy有开源吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants