Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower max connections in postgres from 300 to 125 on India #6383

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions environments/india/postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ REPORTING_DATABASES:
aaa-data: aaa-data

pgbouncer_override:
pgbouncer_default_pool: 290
pgbouncer_default_pool: 115
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This leaves room for the 5 reserved connections and 5 additional connections if we ever need direct connections to a database for debugging/firefighting.

pgbouncer_max_connections: 4000
pgbouncer_pool_mode: transaction
pgbouncer_pool_timeout: 1
pgbouncer_reserve_pool: 5

postgres_override:
postgresql_version: '14'
postgresql_max_connections: 300
postgresql_max_connections: 125
postgresql_hba_entries:
# required for backup
- contype: host
Expand Down
Loading