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

PGBOUNCER_CONNECTION_RETRY doesn't seem to work #145

Open
abbasalizaidi opened this issue Apr 12, 2021 · 3 comments
Open

PGBOUNCER_CONNECTION_RETRY doesn't seem to work #145

abbasalizaidi opened this issue Apr 12, 2021 · 3 comments

Comments

@abbasalizaidi
Copy link

abbasalizaidi commented Apr 12, 2021

Hello,

We have been using a fork from this repo with minimal customization. Seems like the variable PGBOUNCER_CONNECTION_RETRY is not honored. Can you help whats wrong here?

Abbas

@mble
Copy link
Contributor

mble commented Apr 12, 2021

@abbasalizaidi That was for the stunnel retry configuration, which is no longer included in this buildpack and is therefore a no-op.

What are you trying to accomplish with this configuration variable?

@abbasalizaidi
Copy link
Author

abbasalizaidi commented Apr 14, 2021

@mble We are trying to test the failover of the database running in AWS with application in Heroku but the app doesn't seem to reconnect post failover unless it is restarted.

@mble
Copy link
Contributor

mble commented Apr 14, 2021

@abbasalizaidi Understood. On Heroku, when we perform a failover of a Heroku Postgres service, we will restart the app to force reconnection.

PgBouncer itself doesn't have any failover detection logic, so how to handle this will depend on how you are performing the failover in AWS (https://www.pgbouncer.org/faq.html#how-to-failover).

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