run gunicorn with eventlet

this massively increases the horizontal parallellability by using async workers
This commit is contained in:
Leo Hemsted
2018-02-01 14:56:52 +00:00
parent 0d23775a62
commit 31112c9ecf
2 changed files with 11 additions and 2 deletions

View File

@@ -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: