postgresql - Pgbouncer timeouts -
i try use pgbouncer eliminate short network disconnects. did test, had clinet->pgbouncer->postgresql. when connection made client, disconnect network cable, if connect faster in ~15 sec still works. if not, totally disconnected, , pgbouncer logs:
db/user@server.address.com:5432 closing because: server conn crashed? db/user@127.0.0.1:49837 closing because: server conn crashed? db/user@127.0.0.1:49837 pooler error: server conn crashed?
how can control timeout?
ps: in pglib on client side, in connectionstring timeout set 60 sec.
lukas
i try adjust option server_connect_timeout. according doc - if connection , login won’t finish in amount of time, connection closed. default 15 sec.
anyway, source pgbouncer tuning https://pgbouncer.github.io/config.html.
Comments
Post a Comment