mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-08-02 17:23:16 +08:00
Add native PgBouncer support to alleviate DB connection limit errors
This commit is contained in:
parent
24233506c4
commit
b664cb33c4
4 changed files with 48 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue