[英]Scheduling tasks with python/celery/any other task queue based on available RAM
Is there a way to get Celery to allocate tasks to workers based on available RAM? 有没有办法让Celery根据可用的RAM向工作人员分配任务? I am developing a web app which applies memory hungry algorithms to large in-memory data, is there a way to make this more robust using Celery to respect available RAM?
我正在开发一个将内存消耗算法应用于大型内存数据的Web应用程序,有没有办法使用Celery尊重可用的RAM,使其变得更加健壮?
Allocating tasks to workers based on available RAM is not possible. 无法根据可用RAM将任务分配给工作人员。 But, depending on your setup and exact requirements there are ways to work address this problem.
但是,根据您的设置和确切的要求,有一些方法可以解决此问题。 Off the top of my head I can think of:
我能想到的是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.