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

What if... #7

Open
blaggacao opened this issue Jan 26, 2018 · 7 comments
Open

What if... #7

blaggacao opened this issue Jan 26, 2018 · 7 comments

Comments

@blaggacao
Copy link

...someone would try to do a sleak and compliant postgres query loadbalancer in lua for haproxy?

https://www.arpalert.org/haproxy-lua.html

I mean is this not the natural thing to do to replace bgbouncer / pgpool and all the other tools?

Nice side effect: haproxy happens to be the lb of choice of many orchestration frameworks under the hood, like rancher and I believe docker swarm and kubernetes also work atop of haproxy or can be configured that way...

Not sure if this is insane or just nobody has asked this question, so far...

@blaggacao
Copy link
Author

Someone has already played arround with postgres and lua: https://github.com/norman/lua-postgres

@blaggacao
Copy link
Author

postgres marries haproxy -> haprosql 😄

@blaggacao
Copy link
Author

@blaggacao
Copy link
Author

blaggacao commented Jan 30, 2018

@jirutka, You might be probably the expert on this having contributed repmgr package to alpine linux and having some lua repos on your github...

@CyberDem0n
Copy link

@blaggacao do I understand correctly that you want to parse sql statements and route them to the primary or replica, depending on what kind of statement you've got?

@blaggacao
Copy link
Author

@CyberDem0n That's been more or less the idea... 😄
Additionally to something that does connection pooling directly on a haproxy...

@blaggacao
Copy link
Author

... once there, failover would only be a stone's throw away.

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