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

Add cf_dns_close_previous option #881

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukmajercak
Copy link

@lukmajercak lukmajercak commented Jul 6, 2023

Closes #882
This is just a proposal, needs full implementation

What

Currently, when a host is resolved, pgbouncer checks all server connections for this host and tags connections using IPs not found in the new resolved list as dirty (close_needed). I'm proposing to add a configuration option that would disable this behavior. This would be helpful in avoiding connection churn in scenarios where, for example, the host might return a list of different IP addresses every time (think weighted routing in Route53).

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

Successfully merging this pull request may close these issues.

Add option to not close server connections when DNS resolution changes
1 participant