I am using Django/Celery on Heroku with the CloudAMQP add-on.
In my settings file, if I set BROKER_POOL_LIMIT
to any value other than None
, I quickly exceed my CloudAMQP connection limit of 6.
I'm wondering why I would have more connections than what I specify in BROKER_POOL_LIMIT
and how can I set BROKER_POOL_LIMIT
to a value greater than None
without eventually exceeding the connection limit. In case it's useful, this is my worker process type as specified in my profile
worker python manage.py celery worker -B --loglevel=info
BROKER_POOL_LIMIT * (gunicorn-workers * web dynos + worker dynos)
– ChetBROKER_POOL_LIMIT =
instead of*
maybe? Also, shouldn't the last part of the formula beworker dynos * concurrency
? Would you be willing to post a more detailled version of your comment as an answer to this question maybe? – Nektonconnections = BROKER_POOL_LIMIT * (gunicorn-workers * web dynos + worker dynos)
. But I second turning the comment into an answer. – Spang