Celery - run different workers on one server

前端 未结 4 595
时光取名叫无心
时光取名叫无心 2021-01-29 22:33

I have 2 kind of tasks : Type1 - A few of high priority small tasks. Type2 - Lot of heavy tasks with lower priority.

Initially i had simple configuration with default ro

4条回答
  •  独厮守ぢ
    2021-01-29 22:59

    It seems answer - celery-multi - is currently not documented well.

    What I needed can be done by the following command:

    celeryd-multi start 2 -Q:1 default -Q:2 starters -c:1 5 -c:2 3 --loglevel=INFO --pidfile=/var/run/celery/${USER}%n.pid --logfile=/var/log/celeryd.${USER}%n.log
    

    What we do is starting 2 workers, which are listening to different queues (-Q:1 is default, Q:2 is starters ) with different concurrencies -c:1 5 -c:2 3

提交回复
热议问题