You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/06/16 09:19:57 UTC
[apisix] branch master updated: doc: removed comment of
worker_processes. (#4432)
This is an automated email from the ASF dual-hosted git repository.
tokers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 8cea1d0 doc: removed comment of worker_processes. (#4432)
8cea1d0 is described below
commit 8cea1d0d7b17d2f9e7b25fabf99b89a3db6fcfa5
Author: Wen Ming <mo...@gmail.com>
AuthorDate: Wed Jun 16 17:19:50 2021 +0800
doc: removed comment of worker_processes. (#4432)
---
conf/config-default.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/conf/config-default.yaml b/conf/config-default.yaml
index c2c124e..01b50bb 100644
--- a/conf/config-default.yaml
+++ b/conf/config-default.yaml
@@ -136,9 +136,7 @@ nginx_config: # config for render the template to generate n
# if you're not root user,the default is current user.
error_log: "logs/error.log"
error_log_level: "warn" # warn,error
- worker_processes: auto # one worker will get best performance, you can use "auto", but remember it is just work well only on physical machine
- # no more than 8 workers, otherwise competition between workers will consume a lot of resources
- # if you want use multiple cores in container, you can inject the number of cpu as environment variable "APISIX_WORKER_PROCESSES"
+ worker_processes: auto # if you want use multiple cores in container, you can inject the number of cpu as environment variable "APISIX_WORKER_PROCESSES"
enable_cpu_affinity: true # enable cpu affinity, this is just work well only on physical machine
worker_rlimit_nofile: 20480 # the number of files a worker process can open, should be larger than worker_connections
worker_shutdown_timeout: 240s # timeout for a graceful shutdown of worker processes