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

FR: backup servers in the server list #636

Open
vthriller opened this issue Nov 8, 2023 · 1 comment
Open

FR: backup servers in the server list #636

vthriller opened this issue Nov 8, 2023 · 1 comment

Comments

@vthriller
Copy link

vthriller commented Nov 8, 2023

Is your feature request related to a problem? Please describe.

I'd like to contain traffic within each data center, and only use other servers if all local peers are banned via health check.

Describe the solution you'd like
Describe alternatives you've considered

I'd like to see an option that would mark server as backup, similar to server ... backup in nginx/haproxy. Such server would not receive traffic unless all other servers are banned. It might be an extra option added to a servers item, it might be separate array with similar structure.

Additional context

@is-jonreeves
Copy link

We started evaluating pgcat recently and came looking for this feature too. Similarly, we have various out-of-region replicas that we would like to include as servers but not be part of the usual rotation (for latency sake), unless absolutely necessary.

There is also the potential for standby primary instances that would be good to fallback to.

Right now, it looks like we'd have to layer HAProxys (for their backup server capabilities) with our pgcats, but it would be much simpler if we didn't have to. As such, we would also love to see this feature.

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