mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 08:12:27 -05:00
reduce eventlet concurrency and turn off debug
This commit is contained in:
2
Makefile
2
Makefile
@@ -71,7 +71,7 @@ run-celery: ## Run celery, TODO remove purge for staging/prod
|
|||||||
--pidfile="/tmp/celery.pid" \
|
--pidfile="/tmp/celery.pid" \
|
||||||
--loglevel=INFO \
|
--loglevel=INFO \
|
||||||
--pool=eventlet
|
--pool=eventlet
|
||||||
--concurrency=100
|
--concurrency=20
|
||||||
|
|
||||||
|
|
||||||
.PHONY: dead-code
|
.PHONY: dead-code
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import traceback # noqa
|
|||||||
import eventlet.debug as debug # noqa
|
import eventlet.debug as debug # noqa
|
||||||
import gunicorn # noqa
|
import gunicorn # noqa
|
||||||
|
|
||||||
# This will give us a better stack trace if blocking occurs
|
# This will give us a better stack trace if blocking occurs (if True)
|
||||||
debug.hub_blocking_detection(True)
|
debug.hub_blocking_detection(False)
|
||||||
workers = 4
|
workers = 4
|
||||||
worker_class = "eventlet"
|
worker_class = "eventlet"
|
||||||
worker_connections = 256
|
worker_connections = 256
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ applications:
|
|||||||
- type: worker
|
- type: worker
|
||||||
instances: ((worker_instances))
|
instances: ((worker_instances))
|
||||||
memory: ((worker_memory))
|
memory: ((worker_memory))
|
||||||
command: newrelic-admin run-program celery -A run_celery.notify_celery worker --loglevel=INFO --pool=eventlet --concurrency=100 --prefetch-multiplier=2
|
command: newrelic-admin run-program celery -A run_celery.notify_celery worker --loglevel=INFO --pool=eventlet --concurrency=20 --prefetch-multiplier=2
|
||||||
- type: scheduler
|
- type: scheduler
|
||||||
instances: 1
|
instances: 1
|
||||||
memory: ((scheduler_memory))
|
memory: ((scheduler_memory))
|
||||||
|
|||||||
Reference in New Issue
Block a user