Работает через docker-swarm . Довольно часто получаю ошибку
server closed the connection unexpectedly
This probably means the server terminated abnormally before or while processing the request.
Также в логах pgbouncer много подобного db/bot@172.24.0.17:37168 pooler error: pgbouncer cannot connect to server (порт каждый раз разный)
pgbouncer v1.15.0
postgresql v15
Нашёл открытый ишью на гитхабе, без решения
https://github.com/pgbouncer/pgbouncer/issues/440
Есть идеи, куда смотреть?
конфиг pgbouncer ``` [databases] {{ POSTGRES_DB }} = host=db port={{ POSTGRES_PORT }} [pgbouncer] listen_addr = 0.0.0.0 listen_port = 5432 unix_socket_dir = auth_file = /etc/pgbouncer/userlist.txt auth_type = plain pool_mode = transaction max_client_conn = 1000 ignore_startup_parameters = extra_float_digits # Log settings admin_users = {{ POSTGRES_USER }} ```
В лог сервера, конечно. И это... pgbouncer вряд ли пишэт про ситуацыю ТОЛЬКО это.
так, вот ещё есть логи пгбаунсера 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:22.605 UTC [1] LOG kernel file descriptor limit: 1048576 (hard: 1048576); max_client_conn: 1000, max expected fd use: 1052 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:22.605 UTC [1] LOG listening on 0.0.0.0:5432 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:22.605 UTC [1] LOG process up: PgBouncer 1.15.0, libevent 2.1.12-stable (epoll), adns: udns 0.4, tls: OpenSSL 1.1.1l 24 Aug 2021 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:23.093 UTC [1] LOG C-0x7f31b55c0110: db/bot@172.24.0.16:46560 login attempt: db=db user=bot tls=no 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:23.094 UTC [1] LOG S-0x7f31b55b9130: db/bot@172.24.0.2:5432 closing because: connect failed (age=0s) 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:27.750 UTC [1] LOG C-0x7f31b55c0340: db/bot@172.24.0.15:46968 login attempt: db=db user=bot tls=no 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:27.750 UTC [1] LOG C-0x7f31b55c0340: db/bot@172.24.0.15:46968 closing because: pgbouncer cannot connect to server (age=0s) 2023-05-12 11:57:03 (no unique labels) 2023-04-07 13:28:27.750 UTC [1] WARNING C-0x7f31b55c0340: db/=bot@172.24.0.15:46968 pooler error: pgbouncer cannot connect to server
Обсуждают сегодня