简体   繁体   English

如何在主管中动态更改numprocs

[英]How to change dynamically numprocs in supervisor

I am using supervisor's [program:x] to keep my background queue runners up and running. 我正在使用主管的[program:x]来保持后台队列运行器正常运行。

numprocs is set to a static number like 150, but now I am searching for a solution to dynamically adjust the process count depending on the workload of the queues. numprocs设置为像150这样的静态数,但是现在我正在寻找一种解决方案,以根据队列的工作量动态调整进程数。

Is it possible to change the numprocs value programmatically without affecting already running workers ? 是否可以通过编程方式更改numprocs值而不影响已经在运行的工作程序?

也许这会满足您的需求: https : //github.com/wgjak47/supervisor_grace

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM