diff --git a/config/gunicorn_config.py b/config/gunicorn_config.py index 9c5ef31b16053c11076b9c8f16a40ab869f10440..a07badb3cb512d4e3f46cf91fb5fc6f43ccc64d1 100644 --- a/config/gunicorn_config.py +++ b/config/gunicorn_config.py @@ -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. diff --git a/requirements.txt b/requirements.txt index 25217b56e4f5e7fcb490684b340de772c24d6d47..d5f2aa8c496205a2b58e1b382b63b793c6cf7b97 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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