简体   繁体   English

我应该在主管配置文件中输入哪个进程号?

[英]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.

相关问题 将新的配置参数添加到程序包的配置文件中时该怎么办? - What should I do when I add a new config parameter to config file of my package? 我应该使用什么过程来构建linux配置页面? - What process should I use to build a linux config page? 从“ Docker Hub”下载映像后,应将配置文件放在哪里? 在数据量上? - After downloading image from “Docker Hub”, where should I put my configuration file? In data volume? 在父进程和子进程中写入相同的文件描述符时,我应该注意哪些“陷阱”? - What "gotchas" should I be aware of when writing to the same file descriptor in a parent and child process? 我应该在哪里保存我的配置文件 Rust - Where should I save my config files in Rust 使用Apache时,应将工作区目录放在哪里? - Where should I put my workspace directory when working with Apache? 我应该把我的python脚本放在Linux中? - Where I should put my python scripts in Linux? 我可以使用AC_XXXX_CONFIG语法将宏定义放入config.h吗? - Can I put my macro define to config.h by using AC_XXXX_CONFIG syntax? 我应该如何在后台运行Golang进程? - How I should run my Golang process in background? 当脚本中的用户发生变化时,我的脚本文件停止执行我该怎么办 - My script file stopped executing when there change in user in script what should i do
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM