Exact procedure of online restart of pgbouncer 1.20 with help of so_reuseport #900
Replies: 2 comments 2 replies
-
Thanks a lot for the question. To clarify: We purposefully deprecated the
Other than that I tried to create some steps for you, but it turned out that what I had in mind didn't work as well as I anticipated. So I created a PR that fixes the issues I ran into: #902 Could you let me know if that PR and the steps in the description work for your usecase? |
Beta Was this translation helpful? Give feedback.
-
Hi,
It's technically possible to wait until connection to the old pgbouncer instance finally graceful ended (few days should be enough most time), but so far there are no way to prevent new connections going to the old instance of pgbouncer with so_reuseport. PS: about #902 - going to check it. |
Beta Was this translation helpful? Give feedback.
-
I yet can not understand how to perform online restart of new pgbouncer 1.20 WITHOUT losing long living client connections.
so_reuseport in my understanding can not help with transfer already established client tcp connections from the old pgbouncer to new one, so killing old pgbouncer lead to established db connection break as application concerned (and not every apps, especially legacy able to reconnect in case of connection to the database lost, not talking about graceful reconnect without producing user visible anomalies).
Beta Was this translation helpful? Give feedback.
All reactions