add worker_cpu_affinity to improve nginx performance
This commit is contained in:
parent
ebcdfade8e
commit
de04f9775d
2 changed files with 6 additions and 4 deletions
File diff suppressed because one or more lines are too long
|
@ -16,6 +16,8 @@ load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
|
|||
daemon off;
|
||||
|
||||
worker_processes {{ $cfg.WorkerProcesses }};
|
||||
worker_cpu_affinity auto;
|
||||
|
||||
pid /run/nginx.pid;
|
||||
{{ if ne .MaxOpenFiles 0 }}
|
||||
worker_rlimit_nofile {{ .MaxOpenFiles }};
|
||||
|
|
Loading…
Reference in a new issue