I have heard very interesting thing..
If we have 1 cpu and we spawn 2 worker processes, it means that each worker process uses 50% resource of that 1 cpu. If we had spawned 1 worker processes, resources from cpu for this worker process would be 100%. So for 1 cpu only, it's better to have only 1 single worker process.
Then he continues:
worker_connections is how many connections each worker process can accept. I have 1024.
Then he continues again:
So, worker_processes * worker_connections = max connections.
So question: if worker_processes * worker_connections = max connections, then wouldn't it be still great to have 2 worker processes even for only 1 cpu? that way 2 * 1024 = 2048 connections would be better than 1 * 1024. Am I wrong or what happens?