I
I
igoo2016-10-13 21:54:54
Django
igoo, 2016-10-13 21:54:54

Celery workers and docker - all in workers in one container or for each worker?

There is a certain microservice - a Django project, in front of Nginx, as a Postgres database, Redis, Celery is also used for long tasks (+ RabbitMQ as a queue, flower for control).
Everything is pretty typical, only all the components are packed in containers.
I can't figure out how best to pack celery workers:

  1. All workers in one container (which is ideologically, from the point of view of docker, wrong. Yes, and some kind of porridge turns out)
  2. Each worker has its own container (then there is a problem with flower - there is no way to control the number of workers from the flower control panel)

What would you advise, what are the best practices for using django + celery + docker together?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question