alibaba / tengine

A distribution of Nginx with some advanced features
https://tengine.taobao.org
BSD 2-Clause "Simplified" License
12.81k stars 2.52k forks source link

How does ngx_http_upstream_dynamic interact with nginx failure mechanisms #1495

Open sschepens opened 4 years ago

sschepens commented 4 years ago

Question

Hi, i'd like to know how does ngx_http_upstream_dynamic module interact with nginx failure handling mechanisms.

When defining multiple servers nginx can know when one is unavailable and fallback to the next server. In our case we have an upstream composed of a single server which is a ELB and resolves to multilpes IPs, if we configure failure thresholds for this single servers will tengine fail to whole upstrem when a single backend IP fails? or will tengine consider them as separate servers and disable only the failing IP?

zjd87 commented 3 years ago

tengine consider them as separate servers and disable only the failing IP , and continue next ip try