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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to