How can I minimise connections with django-celery

2019-05-13 16:00发布

After spending a few weeks getting django-celery-rabbitmq working on dotcloud I have discovered that dotcloud is no longer supporting rabbitmq. Instead they recommend CloudAMQP. So I've set up CloudAMQP as per the tutorials:

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

I had a look at their docs and they say (http://www.cloudamqp.com/docs-python.html) for celery it's best to set

broker_pool_limit = 1

I have now done this but the connections remain at 3. Any idea how I can

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

  • minimise the number of connections to ensure that I remain within my quota?

0条回答
登录 后发表回答