Skip to content
Snippets Groups Projects
Commit 52056875 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Upgrade gunicorn version and change worker type

Upgrade gunicorn to 19.9.0 and switch to an asynchronous
worker class
parent 2906f1d7
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,8 @@ bind = "127.0.0.1:{port}".format(port=GUNICORN_PORT)
# Number of workers = 2*CPU + 1 (recommendation from Gunicorn documentation)
workers = multiprocessing.cpu_count()*2 + 1
# Worker type
worker_type = 'sync'
# Worker class
worker_class = 'gevent'
# Max requests settings - a worker restarts after handling this many
# requests. May be useful if we have memory leak problems.
......
......@@ -10,7 +10,7 @@ django-user-sessions==1.6.0
djangorestframework==3.9.0
dnspython==1.15.0
flake8==3.5.0
gunicorn==19.7.1
gunicorn[gevent]==19.9.0
html5lib==1.0.1
ipdb==0.10.2
ipython==5.5.0
......
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