简体   繁体   中英

What process number should I put in my supervisor config file?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM