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

How to expose and use port(s) #4

Closed
kujiy opened this issue Oct 26, 2017 · 1 comment
Closed

How to expose and use port(s) #4

kujiy opened this issue Oct 26, 2017 · 1 comment

Comments

@kujiy
Copy link

kujiy commented Oct 26, 2017

Hi @colinmollenhour ,
I started to try using your galera image. I was succeeded to build galera stack along with your swarm instruction on bare metals. Now thinking about the routing because Docker ingress network must get round robin. Some instructions suggest it's better to write into only one node. I think this haproxy image could be that when use with your haproxy cfg in here. But I couldn't get it clearly, so I have a favor to ask you.
That haproxy tpl seems to bind 3306 for write and 3307 for read. I'm wondering how my mysql clients can split the request to both ports. Do you use maxscale before this haproxy? Are you using this haproxy with docker network connect to the galera cluster's network?

I'm sorry I'm still too beginner but I'll be able to help growing these images in the future!

@colinmollenhour
Copy link
Owner

My HAProxy example assumes that your application can already split read/write connections. If it doesn't support splitting on it's own and it is hard to implement then you're probably better off using a more robust proxy like MySQL Proxy or MaxScale.

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

2 participants