Open darkSheep404 opened 8 months ago
https://apisix.apache.org/docs/apisix/discovery/dns/ Does this help you?
https://apisix.apache.org/docs/apisix/discovery/dns/ Does this help you?
thanks for your help
but seems this config can only let upstreams use a dns server, can not set valid=10s;
to keep refresh to get lastest ip ?
yes, I think dns resolve is realtime , no cache valid for 10s .
Description
we using upstream config in yml like that
currently
app.test.com
point to 2 instance A (ip : 1.1.1) ,B (ip: 2.2.2) if A down,app.test.com
will auto point to B(ip: 2.2.2) when using nginx we can use below code to let nginx refresh ip ofapp.test.com
every 10 seconds to ensure get the lastest ipcan we do this in apisix for below upstream ?
Environment