Nginx response rate increases with more upstream ports
Igor Sysoev
is at rambler-co.ru
Tue Jun 16 14:54:24 MSD 2009
On Tue, Jun 16, 2009 at 11:26:46AM +0100, Avleen Vig wrote:
> 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)?
No, I said about backend processes, but not about nginx workers.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list