I am using supervisord's [program:x] to keep my background queue runners up and running. The amount of numprocs is set to a static number, but now I am looking for a solution to dynamically adjust the process count depending on the workload of the queues.

Is it possible to (programmatically) change the amount of supervisord's numprocs setting without affecting already running workers?


At this time, I think the answer is no. Best to ask this on the supervisor users list to be sure.

You can change the number of workers running by editing the config, then running "supervisorctl update" or the equivalent XMLRPC commands. The problem is that the existing processes for the program will be restarted. The current implementation only checks if the config for a program has changed or not. It does not handle the special case where only numprocs has changed.

| improve this answer | |
  • Thank you. I have posted the question to the list and keep this question updated if any detailed information appears. – Ville Mattila Sep 12 '12 at 22:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.