3 messages in ru.sysoev.nginxRe: logging upstream server addr and ...
FromSent OnAttachments
Calvin Hendryx-ParkerSep 24, 2007 1:10 pm 
Igor SysoevSep 24, 2007 9:42 pm 
Calvin Hendryx-ParkerSep 25, 2007 8:58 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: logging upstream server addr and timingsActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Sep 24, 2007 9:42:47 pm
List:ru.sysoev.nginx

On Mon, Sep 24, 2007 at 04:11:16PM -0400, Calvin Hendryx-Parker wrote:

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?

$upstream_addr and $upstream_status