reduce eventlet concurrency and turn off debug

This commit is contained in:
Kenneth Kehl
2025-07-17 07:58:38 -07:00
parent c657cfdb2d
commit ad75c86330
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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))