Skip to content
Snippets Groups Projects
Commit ddab0ca0 authored by Alexander Pace's avatar Alexander Pace
Browse files

Enabling CONN_MAX_AGE

This allows for persistent database connections for workers.
parent 467a4991
No related branches found
No related tags found
No related merge requests found
......@@ -19,15 +19,15 @@ workers = multiprocessing.cpu_count()*2 + 1
# Worker class.
#
worker_class = 'gthread'
threads = 2
worker_class = 'sync'
#threads = 2
# Adding options for timeout. Not specified, the timeout default
# is 30 seconds. Source:
#
# https://gunicorn-docs.readthedocs.io/en/stable/settings.html#worker-processes
#
timeout = 120
timeout = 300
# Max requests settings - a worker restarts after handling this many
# requests. May be useful if we have memory leak problems.
......
......@@ -26,7 +26,7 @@ MAINTENANCE_MODE = False
MAINTENANCE_MODE_MESSAGE = None
# Version ---------------------------------------------------------------------
PROJECT_VERSION = '2.8.1'
PROJECT_VERSION = '2.8.1-1'
# Unauthenticated access ------------------------------------------------------
# This variable should eventually control whether unauthenticated access is
......
......@@ -115,6 +115,7 @@ DATABASES = {
# NOTE: for mysql>=5.7 this will need to be changed to
#'init_command': 'SET default_storage_engine=MyISAM',
},
'CONN_MAX_AGE': 3600,
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment