mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12:20 -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" \
|
||||
--loglevel=INFO \
|
||||
--pool=eventlet
|
||||
--concurrency=100
|
||||
--concurrency=20
|
||||
|
||||
|
||||
.PHONY: dead-code
|
||||
|
||||
@@ -10,8 +10,8 @@ import traceback # noqa
|
||||
import eventlet.debug as debug # noqa
|
||||
import gunicorn # noqa
|
||||
|
||||
# This will give us a better stack trace if blocking occurs
|
||||
debug.hub_blocking_detection(True)
|
||||
# This will give us a better stack trace if blocking occurs (if True)
|
||||
debug.hub_blocking_detection(False)
|
||||
workers = 4
|
||||
worker_class = "eventlet"
|
||||
worker_connections = 256
|
||||
|
||||
@@ -26,7 +26,7 @@ applications:
|
||||
- type: worker
|
||||
instances: ((worker_instances))
|
||||
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
|
||||
instances: 1
|
||||
memory: ((scheduler_memory))
|
||||
|
||||
Reference in New Issue
Block a user