Skip to content

Commit

Permalink
pgbouncer: disable log_connections and log_disconnections.
Browse files Browse the repository at this point in the history
With a large number of connections (without persistent keep-alive ), the pgbouncer.log file can increase to large sizes.

Disabling connection registration eliminates unnecessary loading of the disk I/O subsystem,
which can also be caused by processing this log using logrotate.

https://www.pgbouncer.org/config.html#log-settings
  • Loading branch information
vitabaks committed Feb 21, 2020
1 parent 1b05ba5 commit b5e29a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/pgbouncer.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ reserve_pool_timeout = 1
max_db_connections = {{ pgbouncer_max_db_connections }}
pkt_buf = 8192

log_connections = 0
log_disconnections = 0

# Documentation https://pgbouncer.github.io/config.html

0 comments on commit b5e29a3

Please sign in to comment.