Nginx TCP Delays

Arvind Jayaprakash work at anomalizer.net
Sat Oct 3 11:27:06 MSD 2009


On Sep 23, Avleen Vig wrote:
> On Sep 21, 2009, at 1:02, François Battail <fb at francois.battail.name> 
> wrote:
>
>> Le dimanche 20 septembre 2009 à 22:47 -0700, Khalid Shaikh a écrit :
>>
>>> worker_processes 32;
>>
>> That's way too much, try to keep the number of workers sticked to the
>> number of cores (eg: 4).
>
> Surely you should have more?
> Eg with 4 cores have 8 workers.
>
> If workers block serving a request, this means you don't have CPU sitting 
> idle.

nginx is not apache. A single worker can handle tens of thousands of
connections. I suggest you read this http://www.kegel.com/c10k.html





More information about the nginx mailing list