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

Prestop hook for pgbouncer deployment. #1022

Open
Harif-Rahman opened this issue Feb 12, 2024 · 4 comments
Open

Prestop hook for pgbouncer deployment. #1022

Harif-Rahman opened this issue Feb 12, 2024 · 4 comments

Comments

@Harif-Rahman
Copy link

Can someone recommend the prestop command for pgbouncer?

i tried issue pause command and as we know that it will try to close all existing connection.
i sleep for 40 s and since my timeout is 30s i am expecting that all the queries are finished within 30s.
but lets say the new query is going to be executed for the old connection and since its in pause it will get timeout right.
how to handle this case ?

@JelteF
Copy link
Member

JelteF commented Feb 12, 2024

This PR is meant to improve that situation: #902

@Harif-Rahman
Copy link
Author

Can you give me example code template for this ?

@Harif-Rahman
Copy link
Author

@JelteF

@JelteF
Copy link
Member

JelteF commented Feb 12, 2024

Right now these changes are not released yet, so there isn't really example code. If you want to try out the PR and see if it indeed solves your issue, that would be useful though.

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