mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
run gunicorn with eventlet
this massively increases the horizontal parallellability by using async workers
This commit is contained in:
@@ -1,7 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
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
|
||||||
|
--error-logfile /home/vcap/logs/gunicorn_error.log
|
||||||
|
-w 5
|
||||||
|
-b 0.0.0.0:$PORT
|
||||||
|
-k eventlet
|
||||||
|
application
|
||||||
|
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: 1G
|
memory: 1G
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ pyexcel-ods3==0.5.2
|
|||||||
pytz==2017.3
|
pytz==2017.3
|
||||||
gunicorn==19.7.1
|
gunicorn==19.7.1
|
||||||
whitenoise==3.3.1 #manages static assets
|
whitenoise==3.3.1 #manages static assets
|
||||||
|
eventlet==0.22
|
||||||
notifications-python-client==4.7.1
|
notifications-python-client==4.7.1
|
||||||
|
|
||||||
# PaaS
|
# PaaS
|
||||||
|
|||||||
Reference in New Issue
Block a user