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 2021/11/10 06:47:32 UTC

[GitHub] [apisix] aiyiyi121 opened a new issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

aiyiyi121 opened a new issue #5471:
URL: https://github.com/apache/apisix/issues/5471


   ### Issue description
   
   such as:
   ```
   {
     "timeout": {
       "send": 60,
       "connect": 60,
       "read": 60
     },
     "create_time": 1635499028,
     "update_time": 1635499028,
     "hash_on": "vars",
     "pass_host": "rewrite",
     "upstream_host": "vodkw3u1yoz.nosdn.127.net",
     "type": "roundrobin",
     "name": "netease-download-pro",
     "nodes": {
       "vodkw3u1yoz.nosdn.127.net": 1
     },
     "id": "netease-download-pro",
     "scheme": "http"
   }
   ```
   I find if the ip of `vodkw3u1yoz.nosdn.127.net` changes, the upstream_addr ip hasn't changed. How can I resolve it?
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.10
   - OS (cmd: `uname -a`): centos 7.8
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): openresty/1.19.3.1
   - etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   - apisix-dashboard version, if have:
   - the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`):
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] lixuewang commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   i guess TTL can not resolve this problem. i find when os can resolve the right ip ,but apisix still use wrong ip. 


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   > i guess TTL can not resolve this problem. i find when os can resolve the right ip ,but apisix still use wrong ip.
   
   pls show the case


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] aiyiyi121 commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   @tokers Thanks,I will make a demo to test it this week.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] spacewander closed issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   > apisix still has many long established link to ipA
   
    can you submit a new issue about this? and with more detailed description of the reproduction steps, configuration, etc. this looks like a bug.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tzssangglass commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   You may be using email to reply, do you have a way to reply on Github. The format of emails is confusing on Github.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] lixuewang commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   my case:<br/>systemA-&gt;apisix-&gt;(domainname)systemB(has ip IPA and ipB)<br/><br/>1、systemA-&gt;apisix-&gt;IPA<br/>2、when domainname resolve ipB<br/><br/>apisix still has many long established link to ipA<br/><br/>but I wish apisix connect to IPB .because IPA is read only ,cannot write<br/><br/>how can I resolve this question?<br/><br/><html>
   <head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   </head>
   <body>
   <br/><br/><br/><div class="ntes-mailmaster-quote" style="padding-top: 1px; padding-bottom: 1px" >
       <div style=" margin-top: 2em; margin-bottom: 1em; font-size: 14px; line-height: 1.25; color: #78787a; " >---- 回复的原邮件 ----</div>
       <div style=" margin-bottom: 1em; font-size: 12px; line-height: 1.25; color: #232324; padding: 0.5em 0.25em; border-radius: 0.67em; background-color: #f0f0f0; " >
           <table width="100%" cellpadding="0" cellspacing="9" border="0">
               <tr>
                   <td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
                       发件人
                   </td>
                   <td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
                       <a class="mail-from" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***&gt;</a>
                   </td>
               </tr>
               <tr>
                   <td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
                       日期
                   </td>
                   <td class="mail-date" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
                       2021年12月09日 21:31
                   </td>
               </tr>
               <tr style="">
                   <td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
                       收件人
                   </td>
                   <td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
                       <a class="mail-to" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***&gt;</a>
                   </td>
               </tr>
               <tr style="">
                   <td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
                       抄送至
                   </td>
                   <td valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
                       <a class="mail-cc" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***&gt;</a>、<a class="mail-cc" style="text-decoration:none;color:#0886e8;" ***@***.******@***.***&gt;</a>
                   </td>
               </tr>
               <tr>
                   <td valign="top" style=" width: 4.25em; font-size: 12px; line-height: 1.25; color: #78787a; " >
                       主题
                   </td>
                   <td class="mail-subject" valign="top" style=" font-size: 12px; line-height: 1.25; color: #232324; word-break: break-all; " >
                       Re: [apache/apisix] request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time? (Issue #5471)
                   </td>
               </tr>
           </table>
       </div>
       <div><p></p>
   <blockquote>
   <p dir="auto">i guess TTL can not resolve this problem. i find when os can resolve the right ip ,but apisix still use wrong ip.</p>
   </blockquote>
   <p dir="auto">pls show the case</p>
   
   <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/apache/apisix/issues/5471#issuecomment-989854827">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AW3H2T7NKX3RVOTP5CQEKUTUQCVRZANCNFSM5HXDGDNQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&amp;mt=8&amp;pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&amp;referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
   <img src="https://github.com/notifications/beacon/AW3H2T42ILMDW5TFKHBVWHLUQCVRZA5CNFSM5HXDGDN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHL77Y2Y.gif" height="1" width="1" alt="" /></p>
   <script type="application/ld+json">[
   {
   ***@***.***": "http://schema.org",
   ***@***.***": "EmailMessage",
   "potentialAction": {
   ***@***.***": "ViewAction",
   "target": "https://github.com/apache/apisix/issues/5471#issuecomment-989854827",
   "url": "https://github.com/apache/apisix/issues/5471#issuecomment-989854827",
   "name": "View Issue"
   },
   "description": "View this Issue on GitHub",
   "publisher": {
   ***@***.***": "Organization",
   "name": "GitHub",
   "url": "https://github.com"
   }
   }
   ]</script>
   </div>
   </div>
   </body>
   </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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] tokers commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   By default the record caching TTL is decided according to the TTL settings on the DNS response, check out the DNS TTL settings of this domain, or you can override the TTL by configuring it in APISIX config.yaml, see https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L124 for details.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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



[GitHub] [apisix] spacewander commented on issue #5471: request help: When I use the domain as upstream nodes. If the DNS resolution of this domain changes.Can apisix sense it in real time?

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


   Consider solved. Feel free to reopen it if need.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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