Skip to content

Commit ee5e31a

Browse files
committed
feat(database): persist DB connection for 10 minutes
https://docs.djangoproject.com/en/1.9/ref/databases/#persistent-connections Maybe the volume to our DB is not enough but majority of our interactions depend on it. It does have a note about dev envs as well
1 parent 121cc86 commit ee5e31a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rootfs/deis/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@
292292
'PASSWORD': os.environ.get('DEIS_DATABASE_PASSWORD', ''),
293293
'HOST': os.environ.get('DEIS_DATABASE_SERVICE_HOST', ''),
294294
'PORT': os.environ.get('DEIS_DATABASE_SERVICE_PORT', 5432),
295+
# https://docs.djangoproject.com/en/1.9/ref/databases/#persistent-connections
296+
'CONN_MAX_AGE': 600,
295297
}
296298
}
297299

0 commit comments

Comments
 (0)