From 31112c9ecfcdd4bdf0a9363579281e01971fcec2 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Thu, 1 Feb 2018 14:56:52 +0000 Subject: [PATCH] run gunicorn with eventlet this massively increases the horizontal parallellability by using async workers --- manifest-base.yml | 11 ++++++++++- requirements.txt | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/manifest-base.yml b/manifest-base.yml index 26a167743..dc86ac550 100644 --- a/manifest-base.yml +++ b/manifest-base.yml @@ -1,7 +1,16 @@ --- buildpack: python_buildpack -command: scripts/run_app_paas.sh gunicorn -c /home/vcap/app/gunicorn_config.py --error-logfile /home/vcap/logs/gunicorn_error.log -w 5 -b 0.0.0.0:$PORT application +command: > + scripts/run_app_paas.sh + gunicorn + -c /home/vcap/app/gunicorn_config.py + --error-logfile /home/vcap/logs/gunicorn_error.log + -w 5 + -b 0.0.0.0:$PORT + -k eventlet + application + instances: 1 memory: 1G env: diff --git a/requirements.txt b/requirements.txt index 67b6b6a1d..5626296bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,7 +13,7 @@ pyexcel-ods3==0.5.2 pytz==2017.3 gunicorn==19.7.1 whitenoise==3.3.1 #manages static assets - +eventlet==0.22 notifications-python-client==4.7.1 # PaaS