Configuring Nginx Processes to Cores
Bind the Nginx master process to a core.
1 | taskset -c N /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf |
- N indicates the numbers of the cores. For example, 0–2 indicates cores 0 to 2.
- Binding policy: Bind the Nginx master process to the node or CPU where the service cores reside.
Parent topic: Nginx Tuning