Django celery in a multi-server environment

I am trying to deploy a django project using django, but my issues are not resolved:

  • Should I run one celeryd for each web server?
  • Should I run only one RabbitMQ server, on another (not) machine running celeryd there, available for all my web servers? or should RabbitMQ also run on each of the web servers?
  • How can I use periodic tasks if the code is the same on all web servers?

Thank you for your responses.

+5
source share
1 answer

It really depends on the size of the project, ideally you have RabbitMq, celery workers and web workers working on different machines.

RabbitMQ , , ( ).

1 -, - , , - , , .

, , , :)

, , /- - .

+6

All Articles