You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/10/30 00:14:15 UTC
[apisix] branch master updated: change: rename
APIX_WORKER_PROCESSES to APISIX_WORKER_PROCESSES (#2552)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan 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 b6eb6f4 change: rename APIX_WORKER_PROCESSES to APISIX_WORKER_PROCESSES (#2552)
b6eb6f4 is described below
commit b6eb6f48422ed3feeab6de76ad7cb5978af99eda
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Fri Oct 30 08:14:04 2020 +0800
change: rename APIX_WORKER_PROCESSES to APISIX_WORKER_PROCESSES (#2552)
Close #2517.
---
.travis/apisix_cli_test.sh | 2 +-
bin/apisix | 2 +-
conf/config-default.yaml | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.travis/apisix_cli_test.sh b/.travis/apisix_cli_test.sh
index 79905ce..091ff92 100755
--- a/.travis/apisix_cli_test.sh
+++ b/.travis/apisix_cli_test.sh
@@ -430,7 +430,7 @@ echo "passed: nginx.conf file disable cpu affinity"
# set worker processes with env
git checkout conf/config.yaml
-export APIX_WORKER_PROCESSES=8
+export APISIX_WORKER_PROCESSES=8
make init
diff --git a/bin/apisix b/bin/apisix
index 10798e2..2e72a31 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -993,7 +993,7 @@ Please modify "admin_key" in conf/config.yaml .
sys_conf["dns_resolver"] = dns_addrs
end
- local env_worker_processes = os.getenv("APIX_WORKER_PROCESSES")
+ local env_worker_processes = os.getenv("APISIX_WORKER_PROCESSES")
if env_worker_processes then
sys_conf["worker_processes"] = math.floor(tonumber(env_worker_processes))
end
diff --git a/conf/config-default.yaml b/conf/config-default.yaml
index bb51039..ef9331f 100644
--- a/conf/config-default.yaml
+++ b/conf/config-default.yaml
@@ -115,7 +115,7 @@ nginx_config: # config for render the template to genarate n
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 "APIX_WORKER_PROCESSES"
+ # 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 # enbale 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