You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Is there some kind of load-balancing support built into stolon?
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?
The text was updated successfully, but these errors were encountered:
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.
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:stolon
?The text was updated successfully, but these errors were encountered: