Change all uses of CONN_MAX_AGE to 0
Database connection when using gunicorn microthreads are not shared by the microthreads and can exhaust the number of open connections available. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -122,7 +122,7 @@ class PlatformTemplateSupervisord(PlatformTemplate):
|
||||
environment_name='MAYAN_GUNICORN_WORKERS'
|
||||
),
|
||||
Variable(
|
||||
name='DATABASE_CONN_MAX_AGE', default=60,
|
||||
name='DATABASE_CONN_MAX_AGE', default=0,
|
||||
environment_name='MAYAN_DATABASE_CONN_MAX_AGE'
|
||||
),
|
||||
Variable(
|
||||
|
||||
Reference in New Issue
Block a user