Welcome! Log In Create A New Profile


$upstream_addr contains the upstream name instead of servers list.

Posted by traquila 
$upstream_addr contains the upstream name instead of servers list.
January 25, 2013 11:14AM

I have a problem with upstream in case of upstream error.

Here an exemple of my configuration:

upstream my_backend_list {

server {
location / {
proxy_pass http://my_backend_list;

My 2 backends are offline.
When I send a request, I have the expected result:
$status: 502
$upstream_status: 502, 502

But, if I try several requests at a time, some results (50%) are unexpected:
$status: 502
$upstream_addr: my_backend_list
$upstream_status: 502

First, I don't want "my_backend_list" string appears in my logs and my servers statistics.
Then, I'am afraid the backends are not contacted in this cases.

Here some variables values:
request->upstream_states->nelts == 1
request->upstream_states->elts[0].peer->data == "my_backend_list"

Is there a way to avoid this behaviour ?
Thank you in advance.

Re: $upstream_addr contains the upstream name instead of servers list.
February 26, 2013 05:34AM
Hello, I didn't found any solution for my problem.

Thank in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 203
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready