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 2022/12/19 02:41:46 UTC

[GitHub] [apisix] qlql489 opened a new issue, #8535: help request: how to lossless update upsteam service in k8s

qlql489 opened a new issue, #8535:
URL: https://github.com/apache/apisix/issues/8535

   ### Description
   
   i config  router  use node type, the value is k8s's service host,  like this:
   ```
   "nodes": [
         {
           "host": "push-api",
           "port": 80,
           "weight": 1
         }
       ]
   ```
   the upstream service deploy at list two pod ,when i update upstream service ,will cause some requsts faill, return code 502
   i guess is the upsteam's  keepalive config, the old connection is not close,  i  try to modify the config like this , it works , but It affects performance and is not elegant,have other solution to solve the problem?
   ```
    upstream apisix_backend {
           server 0.0.0.1;
   
   
           balancer_by_lua_block {
               apisix.http_balancer_phase()
           }
           # keepalive 320;
           # keepalive_requests 1000;
           # keepalive_timeout 60s;
           # we put the static configuration above so that we can override it in the Lua code
       }
   ```
   
   ### Environment
   
   - APISIX version (2.13.1):
   - Operating system (linux):
   - OpenResty / Nginx version (openresty/1.19.9.1):
   - etcd version, if relevant ():
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues ():
   


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

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


[GitHub] [apisix] tzssangglass commented on issue #8535: help request: how to lossless update upsteam service in k8s

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

   same as: #8489?


-- 
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] github-actions[bot] closed issue #8535: help request: how to lossless update upsteam service in k8s

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8535: help request: how to lossless update  upsteam service in k8s 
URL: https://github.com/apache/apisix/issues/8535


-- 
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 #8535: help request: how to lossless update upsteam service in k8s

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

   @tzssangglass Here seems that he didn't use the service discovery.
   
   @qlql489 This may be due to APISIX doesn't know that your pods are drifting. So it still reuses the connections in the keepalive pool. Try enabling `proxy_socket_keepalive`.


-- 
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] shreemaan-abhishek commented on issue #8535: help request: how to lossless update upsteam service in k8s

Posted by "shreemaan-abhishek (via GitHub)" <gi...@apache.org>.
shreemaan-abhishek commented on issue #8535:
URL: https://github.com/apache/apisix/issues/8535#issuecomment-1708142329

   ping @qlql489, do you have any further questions/updates? If not, please close the issue. Thanks.


-- 
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] github-actions[bot] commented on issue #8535: help request: how to lossless update upsteam service in k8s

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8535:
URL: https://github.com/apache/apisix/issues/8535#issuecomment-1742028267

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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] github-actions[bot] commented on issue #8535: help request: how to lossless update upsteam service in k8s

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8535:
URL: https://github.com/apache/apisix/issues/8535#issuecomment-1738848975

   Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


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