Debugging nginx Load Balancer

Cliff Wells cliff at
Wed Apr 29 22:54:44 MSD 2009

On Wed, 2009-04-29 at 20:42 +0200, Arun Gupta wrote:
> >> The port is shown as the second parameter in each log line, that's good! 
> >> But I expected the request to be served by only one instance, why all 3 
> > 
> > It seems to be 3 different requests and they was served by different 
> > upstreams because of load
> > balancing  upstreams.
> Interesting ...
> If I curl the page then I see only one log entry but invoking the page 
> from the browser still shows 3 log entries.
> Any idea why 3 requests are made from the browser ?

Most browsers will use several separate connections per domain for
downloading separate elements (Firefox defaults to 8 for normal
connections, 2 for persistent connections).  Your keepalive settings for
Nginx can affect this number.

I believe wget can only use one under all circumstances.


More information about the nginx mailing list