Debugging nginx Load Balancer

Anton Yuzhaninov citrin at citrin.ru
Wed Apr 29 22:27:11 MSD 2009


Arun Gupta wrote:
> 127.0.0.1 - [127.0.0.1:3002] - [29/Apr/2009:11:03:43 -0700] GET /runlogs 
> HTTP/1.1 "200" 621 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 
> 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 
> Safari/525.27.1" "-"
> 127.0.0.1 - [127.0.0.1:3000] - [29/Apr/2009:11:03:43 -0700] GET 
> /stylesheets/scaffold.css?1240977992 HTTP/1.1 "200" 889 
> "http://localhost/runlogs" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 
> 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 
> Safari/525.27.1" "-"
> 127.0.0.1 - [127.0.0.1:3001] - [29/Apr/2009:11:03:43 -0700] GET 
> /favicon.ico HTTP/1.1 "200" 0 "http://localhost/runlogs" "Mozilla/5.0 
> (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 
> (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1" "-"
> 
> 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.

-- 
 Anton Yuzhaninov





More information about the nginx mailing list