mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 10:21:14 -05:00
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:
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
buildpack: python_buildpack
|
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:
|
services:
|
||||||
- notify-db
|
- notify-db
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ Flask-Migrate==2.1.1
|
|||||||
Flask-SQLAlchemy==2.3.2
|
Flask-SQLAlchemy==2.3.2
|
||||||
Flask==0.12.2
|
Flask==0.12.2
|
||||||
click-datetime==0.2
|
click-datetime==0.2
|
||||||
|
eventlet==0.22.0
|
||||||
gunicorn==19.7.1
|
gunicorn==19.7.1
|
||||||
iso8601==0.1.12
|
iso8601==0.1.12
|
||||||
jsonschema==2.6.0
|
jsonschema==2.6.0
|
||||||
|
|||||||
Reference in New Issue
Block a user