How can I minimize connections to django-celery when using CloudAMQP via dotcloud?

After weeks of getting django-celery-rabbitmq working on dotcloud, I found that dotcloud no longer supports rabbitmq. Instead, they recommend CloudAMQP. So I installed CloudAMQP according to the tutorials:

And the service is working fine. However, even when I do not have any processes, CloudAMQP says that there are 3 connections.

I looked through their docs and they say ( http://www.cloudamqp.com/docs-python.html ) celery is best set

broker_pool_limit = 1

Now I have done it, but the connections remain at 3. Any idea how I can

  • reduce the number of connections to 0 when the application is not in use?

  • minimize the number of connections so that I stay in my quota?

+3
source share

Source: https://habr.com/ru/post/1537746/


All Articles