kayx23 commented on code in PR #9658:
URL: https://github.com/apache/apisix/pull/9658#discussion_r1229027988
##########
conf/config-default.yaml:
##########
@@ -131,14 +131,19 @@ apisix:
# !!! So do not change it after encryption,
it can't decrypt the fields have be saved if you change !!
# Only use the first key to encrypt, and
decrypt in the order of the array.
-nginx_config: # config for render the template to generate
nginx.conf
- #user: root # specifies the execution user of the worker
process.
- # the "user" directive makes sense only if
the master process runs with super-user privileges.
- # 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 # if you want use multiple cores in
container, you can inject the number of cpu as environment variable
"APISIX_WORKER_PROCESSES"
- enable_cpu_affinity: false # disable CPU affinity by default, if APISIX
is deployed on a physical machine, it can be enabled and work well.
+nginx_config: # Config for render the template to generate
nginx.conf
+ # user: root # Specify the execution user of the worker
process. This is only
+ # effective if the master process runs with
super-user privileges.
+ error_log: logs/error.log # Location of the error.log
+ error_log_level: warn # Logging level: info, debug, notice, warn,
error, crit, alert, or emerg.
+ worker_processes: auto # Automatically determine the optimal number
of worker processes based
+ # on the available system resources.
+ # If you want use multiple cores in
container, you can inject the number of
+ # CPU cores as environment variable
"APISIX_WORKER_PROCESSES".
+ enable_cpu_affinity: false # Disable CPU affinity by default as
worker_cpu_affinity affects the
Review Comment:
Referenced https://github.com/apache/apisix/issues/8042 and
https://nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity for CPU
affinity
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]