Hello.

My scenario:

 - I've a web app that send messages to a supervisord tube and a
worker that consume those messages. Nothing special. Things are
working well.
 - The worker takes around 50 seconds to process a message
 - Messages are sent to the queue mostly all at the same time (this is
because the web app is used for short periods of time by a lot of
users)

My doubt is about the value of numprocs to put in the config file. If
I put it too high my system waste resources for 99% of the day if I
put it too low the queue takes long time to be processed.

How would you handle this situation ?  I'm just wondering if is there
a way to have a dynamic value for numprocs. Something like "If there
are more than 10 messages in the queue than start another process"

Thank

--
Simone
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to