Skip to content

Commit

Permalink
Disable connection logging in pgbouncer by default (#10118)
Browse files Browse the repository at this point in the history
It can produce a lot of logs, making pgbouncer itself consume all CPU in
extreme cases. We saw that happen in stress testing.
  • Loading branch information
hlinnaka authored Dec 12, 2024
1 parent 2f34338 commit 5372126
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions compute/etc/pgbouncer.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ max_prepared_statements=0
admin_users=postgres
unix_socket_dir=/tmp/
unix_socket_mode=0777

;; Disable connection logging. It produces a lot of logs that no one looks at,
;; and we can get similar log entries from the proxy too. We had incidents in
;; the past where the logging significantly stressed the log device or pgbouncer
;; itself.
log_connections=0
log_disconnections=0

1 comment on commit 5372126

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7740 tests run: 7409 passed, 0 failed, 331 skipped (full report)


Flaky tests (4)

Postgres 17

Code coverage* (full report)

  • functions: 31.4% (8379 of 26700 functions)
  • lines: 47.8% (65926 of 137917 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
5372126 at 2024-12-12T18:53:34.859Z :recycle:

Please sign in to comment.