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
Connection pool issue. Waiting for sv_login #1019
Comments
Hmm, that's some pretty strange behaviour.
I'm wondering if these cancellations are a sideffect or the cause of the issue. Could you also share the stats of of the connections in active_cancel and waiting_cancel states?
Lowering query_wait_timeout is something worth trying, but probably won't help.
"Broken pipe" often suggests some network issue. Did you check that the Postgres server is still reachable from the PgBouncer server? |
@JelteF Thanks for the reply.
I agree, this is the first time in years of operation.
I don't seem to have such a metrics (in Netdata).
Yes, postgres is covered by several monitoring systems and all show that it was available. P.S. At the moment, the problem only occurs on Debian 11.8 We have updated to 11.9 and are currently performing load testing, so far everything looks good, but we will leave it under load for a few more days (for reliability). I'll let you know the result. |
The problem was not reproduced on Debian 11.9 during 48 hours of load testing. We will also repeat the tests with PgBouncer 1.22 and plan upgrades in production. If everything is stable, I will close this issue. |
Periodically, I observe a problem with one of the pool (pool_size=40 pool_mode=transaction), it consists in the fact that all client connections switch to the waiting state and there is no active connection:
And we see that there is only one server connection with the login state:
Pgbouncer log:
PgBouncer config:
Database - Sessions
We see that idle sessions were closed during the incident.
There is no max_connection saturation on the Postgres server. There is nothing special in Postgres log except "could not send data to client: Broken pipe".
We began to observe the problem after updating the Debian 9 system to 11 and, accordingly, the pgbouncer package to 1.21.0
At the moment, we have rolled back to version 1.20.1, but this problem has happened again. We plan to rollback to an older version of pgbouncer package, since we did not encounter this behavior before the update.
The text was updated successfully, but these errors were encountered: