Use eventlet workers for gunicorn

Cap their parallel connections to 1/4 of the default to play it safe
while we keep an eye on our resources utilisation
This commit is contained in:
Athanasios Voutsadakis
2018-02-06 11:24:01 +00:00
parent cea52929d3
commit 9307f54d9a
2 changed files with 2 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
---
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 -k eventlet --worker_connections 256 --error-logfile /home/vcap/logs/gunicorn_error.log -w 5 -b 0.0.0.0:$PORT application
services:
- notify-db
env: