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 query_db_wait_timeout configuration option #594

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

Conversation

james727
Copy link

@james727 james727 commented May 13, 2021

Hello PgBouncer team. I'd like feedback on a new configuration field. This adds a parameter (query_db_wait_timeout) to address the problem described in in #585.

Setting query_db_wait_timeout to a nonzero value will disconnect a client if the following two things are true:

  1. It's been waiting to be assigned a server connection for longer than query_db_wait_timeout
  2. The underlying pool is detected to be in a fast-failure state, as determined by existing logic for fast failing new connections.

Note that this does not require the pool to have been in a fast failure state for query_db_wait_timeout seconds, just that the client has been waiting and the pool is currently in a broken state when the bookkeeping occurs.

Thanks in advance.

@james727 james727 reopened this May 18, 2021
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.

None yet

1 participant