Reputation: 827
So how many processes should I run at the same time for a project in my supervisor config file under numprocs
?
And what are the advantages of having multiple ones running at the same time? Wouldn't it be faster if there was just 1 process?
Upvotes: 8
Views: 12525
Reputation: 249133
numprocs
controls how many processes supervisord will run at the same time. If you just want to run a simple program, you'd leave this unset; the default is 1.
This setting would be useful if you have a server process which needs many copies running as the targets of a load balancer, for example. Or if you have a program which can run one instance per CPU core to do some work in parallel. But most programs wouldn't fit this description.
Upvotes: 7