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

Load-Balancing Support #237

Closed
testark opened this issue Jan 24, 2017 · 3 comments
Closed

Load-Balancing Support #237

testark opened this issue Jan 24, 2017 · 3 comments

Comments

@testark
Copy link

testark commented Jan 24, 2017

We're currently thinking about using stolon to deploy a HA cluster inside Kubernetes, but we'd also like to take advantage of hot-standby replicas to serve read-only queries. I have two questions here:

  1. Is there some kind of load-balancing support built into stolon?
  2. In case there's not, and assuming I can easily do load-balancing "client-side", is there a way to get a service to point to the current master and another service pointing to the set of read-only replicas?
@testark
Copy link
Author

testark commented Jan 27, 2017

@sgotti can you please shed some light?

@sgotti
Copy link
Member

sgotti commented Jan 27, 2017

@testark looks the same as #132

Basically the primary focus is on postgres HA. As an improvement the proxy could be enhanced to also balance RO connections to the standbys but there're various things to consider (for example which replicas should be used: only the replicas below a defined lag, is it ok to close connections if a replica stops syncing etc...) and currently doing this is not a priority but we'll be happy to review PRs.

As a custom solution you can read the cluster data and implement your own load balancing.

@sgotti
Copy link
Member

sgotti commented Apr 24, 2017

@testark I'll close this as a duplicate of #132. We'll happily accept and review PRs.

@sgotti sgotti closed this as completed Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants