Skip to content

Commit

Permalink
perf: add worker_process and worker_cpu_affinity to raise the QPS
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Feb 5, 2023
1 parent eeca00b commit 7fad6d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# Enables the use of JIT for regular expressions to speed-up their processing.
pcre_jit on;

worker_processes 8;
worker_cpu_affinity 000 001 010 011 100 101 110 111;

events {
worker_connections 1024;
}
Expand Down

0 comments on commit 7fad6d1

Please sign in to comment.