Celery not using all concurrent slots

纵饮孤独 提交于 2019-12-11 09:25:24

问题


I have a Celery cluster made up of machines with 8-core processors. Each machine has one worker that is set to a concurrency factor of 8 (-c8).

I often see nodes with a lot of reserved tasks, but only one or two are running simultaneously. My tasks are often long-running with a lot of compute and I/O.

Any ideas as to why this is happening, and what I can do to increase the number of tasks simultaneously running? Does celery throttle the number of active tasks based on system load? I looked through the documentation but came up short.


回答1:


Thanks to banana, I think I found the answer.

Some of my tasks were spawning subprocesses, which Celery counts in its concurrency.



来源:https://stackoverflow.com/questions/22902310/celery-not-using-all-concurrent-slots

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!