Skip to content

Commit

Permalink
PgBouncer: Add max_prepared_statements option (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks authored Nov 7, 2023
1 parent a820772 commit a163628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion roles/pgbouncer/templates/pgbouncer.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ reserve_pool_timeout = 1
max_db_connections = {{ pgbouncer_max_db_connections }}
pkt_buf = 8192
listen_backlog = 4096

max_prepared_statements = {{ pgbouncer_max_prepared_statements }}
so_reuseport = 1

log_connections = 0
Expand Down
1 change: 1 addition & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ pgbouncer_listen_addr: "0.0.0.0"
pgbouncer_listen_port: 6432
pgbouncer_max_client_conn: 10000
pgbouncer_max_db_connections: 1000
pgbouncer_max_prepared_statements: 1024
pgbouncer_default_pool_size: 20
pgbouncer_query_wait_timeout: 120
pgbouncer_default_pool_mode: "session"
Expand Down

0 comments on commit a163628

Please sign in to comment.