Nginx response rate increases with more upstream ports

Avleen Vig avleen at gmail.com
Tue Jun 16 14:26:46 MSD 2009


2009/6/16 Igor Sysoev <is at rambler-co.ru>:
> What do you mean by upstream ports ? This
>
>    upstream backend {
>        server  backend:9000;
>        server  backend:9001;
>        server  backend:9002;
>        server  backend:9003;
>        ...
>    }
>
> ?
>
> In this case you run 50 backend processes and they compete for CPU.

Hmm
I have a total of 40 unique upstream server:port listed, in about 12
different upstream{} blocks.

Does this mean I should run 40 nginx child processes to get the most efficiency?
Or something which divides equally into 40 (10, 20)?





More information about the nginx mailing list