Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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