[英]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
? 因此,我应在
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. numprocs
控制受监管者将同时运行多少个进程。 If you just want to run a simple program, you'd leave this unset; 如果您只想运行一个简单的程序,则无需设置此设置。 the default is 1.
默认值为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.
或者,如果您有一个程序,每个CPU内核可以运行一个实例来并行执行一些工作。 But most programs wouldn't fit this description.
但是大多数程序都不适合此描述。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.