зеркало из https://github.com/mozilla/treeherder.git
Bug 1340123 - Stop using --max-requests with gunicorn
Since hopefully now we're no longer using datasource, the leaks should have gone. The gunicorn processes will now only be restarted at the daily Heroku dyno restart, rather than multiple times per minute, improving performance.
This commit is contained in:
Родитель
0f87eb959b
Коммит
6502ec24b1
2
Procfile
2
Procfile
|
@ -1,4 +1,4 @@
|
|||
web: newrelic-admin run-program gunicorn treeherder.config.wsgi:application --timeout 29 --max-requests 150
|
||||
web: newrelic-admin run-program gunicorn treeherder.config.wsgi:application --timeout 29
|
||||
worker_beat: newrelic-admin run-program celery beat -A treeherder
|
||||
worker_pushlog: newrelic-admin run-program celery worker -A treeherder --without-gossip --without-mingle --without-heartbeat -Q pushlog --maxtasksperchild=500 --concurrency=5
|
||||
worker_buildapi_pending: newrelic-admin run-program celery worker -A treeherder --without-gossip --without-mingle --without-heartbeat -Q buildapi_pending --maxtasksperchild=20 --concurrency=5
|
||||
|
|
|
@ -13,7 +13,6 @@ source /etc/profile.d/treeherder.sh
|
|||
NUM_WORKERS=5
|
||||
|
||||
exec newrelic-admin run-program gunicorn -w $NUM_WORKERS \
|
||||
--max-requests=150 \
|
||||
treeherder.config.wsgi:application \
|
||||
--keep-alive=3 \
|
||||
--log-level error \
|
||||
|
|
Загрузка…
Ссылка в новой задаче