Add native PgBouncer support to alleviate DB connection limit errors

This commit is contained in:
Keannu Christian Bernasol 2024-09-05 13:16:23 +08:00
parent 24233506c4
commit b664cb33c4
4 changed files with 48 additions and 11 deletions

View file

@ -27,7 +27,10 @@ DB_PASSWORD = ''
DB_HOST = 'postgres'
DB_PORT = '5432'
DB_SSL_MODE = 'disable'
DB_DISABLE_SERVER_SIDE_CURSORS = 'False' # If you're using an external connection bouncer (eg. PgBouncer), set this to True
# DB connection bouncer
USE_BOUNCER = 'True'
DB_BOUNCER_HOST = 'pgbouncer'
DB_BOUNCER_PORT = '6432'
# Redis
# Used for DB cache and Celery broker