Commit 8bcb5784 authored by Alexander Pace's avatar Alexander Pace

Change default worker model.

parent a6ec6159
Pipeline #73123 passed with stages
in 6 minutes and 42 seconds
......@@ -17,8 +17,17 @@ 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 class
worker_class = 'sync'
# Worker class.
#
worker_class = 'gthread'
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
# Max requests settings - a worker restarts after handling this many
# requests. May be useful if we have memory leak problems.
......
......@@ -12,7 +12,6 @@ djangorestframework==3.9.0
djangorestframework-guardian==0.1.1
dnspython==1.15.0
flake8==3.5.0
gunicorn[gevent]==19.9.0
html5lib==1.0.1
ipdb==0.10.2
ipython==5.5.0
......@@ -47,3 +46,7 @@ pytz==2018.9
# https://github.com/etingof/pyasn1/issues/112
pyasn1==0.3.6
pyasn1-modules==0.1.5
# Installing future for gunicorn gthreads:
future==0.17.1
futures==3.2.0
gunicorn[gthread]==19.9.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment