Hi community,
ngx_http_upstream_dynamic_module provides the functionality to resolve
domain names into IP addresses in an upstream at run-time.
via doc: http://tengine.taobao.org/document/http_upstream_dynamic.html
config samples like:
upstream backend {
dynamic_resolve fallback=stale fail_timeout=30s;
server a.com;
server b.com;
}
server {
...
location / {
proxy_pass http://backend;
}
}
So how to enable this feature in apisix or apisix based on tengine?
What about add `dynamic_resolve fallback=stale fail_timeout=30s;` in
nginx.conf
upstream apisix_backend {
server 0.0.0.1;
balancer_by_lua_block {
apisix.http_balancer_phase()
}
+ dynamic_resolve fallback=stale fail_timeout=30s;
keepalive 320;
}