5

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?

2 Answers 2

2

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.

2
  • Thank you. I have posted the question to the list and keep this question updated if any detailed information appears. Sep 12, 2012 at 22:06
  • @VilleMattila I'm curious to know if you ever found an answer to that :)
    – Lulu
    Nov 28, 2021 at 9:52
1

It is now possible to control the number of processes running through XML-RPC API

Few clients are available, depending on language, some are referenced on this section of the docs and here:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .