Re:Re: Re: Re: proxy_upstream_next while no live upstreams

2017-05-12 Thread Wu Bingzheng
known question. Thanks for your answer. Wu At 2017-05-12 18:39:12, "Maxim Dounin" wrote: >Hello! > >On Fri, May 12, 2017 at 01:24:14PM +0800, Wu Bingzheng wrote: > >> >> The last request before this 502 request is almost 20 minutes ago and its >> respons

Re:Re: Re: proxy_upstream_next while no live upstreams

2017-05-11 Thread Wu Bingzheng
t; 200 "192.168.0.5:8181" 0.017 0.017 9 [03/May/2017:15:40:51 -0400] "POST /x/y HTTP/1.1" 200 "192.168.0.5:8181" 0.011 0.011 10 [03/May/2017:15:59:06 -0400] "POST /x/y HTTP/1.1" 502 "192.168.0.6:8181, test_backend" 0.000 0.000, 0.000

Re:Re: proxy_upstream_next while no live upstreams

2017-05-10 Thread Wu Bingzheng
Thanks for the answer. Maybe you miss something in Question 2. The server 192.168.0.5 never fails. I think nginx should not return 502 if there is at least one server never fails. Exactly speaking, the server never fails in the last 1 hour and the fail_timeout is the default 10 second. >> Que

proxy_upstream_next while no live upstreams

2017-05-10 Thread Wu Bingzheng
Hi all, I have an upstream configure with Nginx 1.8.1 : upstream test { server 192.168.0.5; server 192.168.0.6; } Question 1: Assume both of the 2 servers are down. First request tries both of them and fails, and response 502. Nginx marks both of them as DOWN. This is OK. Se