How many worker_processes should I use in Nginx?
Answer:
In the Nginx configuration (nginx.conf), the default worker_processes is 1.
e.g.
worker_processes 1;
However, as nowadays most servers are multi-core/multi-processor machine, it is a waste to only use 1 worker process.
The recommended worker_processes is equal to the number of CPU cores, e.g. if you have a dual Quad Core server, you should set to 8.
worker_processes 8;