Hi:

I think it has been resolved already.

It both support openresty and Tengine.

You can search key word `has_domain`[1].

[1]
https://github.com/apache/incubator-apisix/search?q=has_domain&unscoped_q=has_domain

On Fri, Jan 3, 2020 at 4:36 PM Lang Wang <totemofw...@apache.org> wrote:

> 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;
>         }
>


-- 
*MembPhis*
My github: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix

Reply via email to