You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/05 10:19:26 UTC

[GitHub] [apisix] dickens7 opened a new issue #2973: upstream service parsed by CNAME raises exception

dickens7 opened a new issue #2973:
URL: https://github.com/apache/apisix/issues/2973


   The upstream proxy service is exposed through CNAME, and the domain name is accelerated by Alibaba Cloud. After setting the domain name as upstream,  Apisix will resolve and cache the IP address for the domain name. This resulted in the upstream being unable to be properly proxied.
   
   - [AlibabaCloud Dynamic Route for Content Delivery Network](https://help.aliyun.com/product/64812.html)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #2973:
URL: https://github.com/apache/apisix/issues/2973


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #2973:
URL: https://github.com/apache/apisix/issues/2973#issuecomment-785516688


   Now we cache the record according to the TTL. Feel free to reopen it if the problem is still exist.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2973:
URL: https://github.com/apache/apisix/issues/2973#issuecomment-739500202


   > I am wondering if I can add a configuration for `dns_no_cache` to upstream to solve this kind of problem.
   
   Do you want to resolve the domain in every request? What is the reason for this way? 
   
   As I know, if there is no cache, it will lead to poor performance.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dickens7 commented on issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
dickens7 commented on issue #2973:
URL: https://github.com/apache/apisix/issues/2973#issuecomment-739313570


   This does not really solve the problem, and it will affect all upstream services after changing `dns_resolver_valid` default value.
   
   I am wondering if I can add a configuration for `dns_no_cache` to upstream to solve this kind of problem.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] dickens7 commented on issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
dickens7 commented on issue #2973:
URL: https://github.com/apache/apisix/issues/2973#issuecomment-740307037


   yes this will cause severe performance degration. And this requires further study of th accelearation service provided by different vendors.  just put this issue aside, and i will supplement this later


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on issue #2973: upstream service parsed by CNAME raises exception

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2973:
URL: https://github.com/apache/apisix/issues/2973#issuecomment-739205187


   > Apisix will resolve and cache the IP address for the domain name
   
   parse and cache in lrucache:
   
   https://github.com/apache/apisix/blob/master/apisix/init.lua#L120-L122
   
   and the cache time is 30 sec by default, you can specify a new value:
   
   https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L101


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org