logging upstream server addr and timings

Calvin Hendryx-Parker calvin at sixfeetup.com
Tue Sep 25 00:11:16 MSD 2007


I would like to log the response times for each of my upstream servers 
in a load balanced configuration.  Currently the upstream variables for 
the reponse time work, but I can't get the address of the upstream 
server that was used for the request.

I have tried to use $upstream_http_server_addr and $proxy_host, but the 
first one doesn't return a value and the second one returns the name of 
the upstream cluser and not a specific host that handled the request.

I'm using nginx version: nginx/0.5.30.  Is this a bug or am I using the 
wrong variable?


S i x  F e e t  U p , I n c .  |  "Nowhere to go but open source"
Silicon Valley: +1 (650) 401-8579 x602
Midwest: +1 (317) 861-5948 x602
Toll-Free: 1-866-SIX-FEET
mailto:calvin at sixfeetup.com
http://www.sixfeetup.com  |  Zope/Plone Custom Development

More information about the nginx mailing list