diff --git a/config/gunicorn_config.py b/config/gunicorn_config.py index 507ab2262366309cd10bedcf0463fd80dd04ffad..af605e29aaa808c49888a0bb54b9d47a26c623e5 100644 --- a/config/gunicorn_config.py +++ b/config/gunicorn_config.py @@ -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. diff --git a/config/settings/base.py b/config/settings/base.py index 6cd3f636d08a11b6c9a888f789b8fda284857a7b..32bb2fffcf48dac932e53f4c296faf5518284fc6 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -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 diff --git a/config/settings/container/base.py b/config/settings/container/base.py index 8fad4fa1243fd69ff311be156f09c57dff12a4e1..7914e3b89d52c4e4bd922114e7b068d965ee3f36 100644 --- a/config/settings/container/base.py +++ b/config/settings/container/base.py @@ -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, } }