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

   ### Current Behavior
   
   we use apisix 2.13.1,api7-lua-resty-healthcheck package version is 3.2.0.  
we create one upstream with 1000 k8s pods,then update upstream with 1 second 
period. we find that one or more nginx process cpu load not stable, sometime 
cpu load reach 100%, then come down.
   
   
![image](https://github.com/apache/apisix/assets/13797866/f3315507-5602-46ca-8271-15477932e6ee)
   
   from lua stack flame, we can see that apisix locking_target_list when 
add_target of upstream one by one consume too much cpu
   
   
![image](https://github.com/apache/apisix/assets/13797866/d2792eb8-b752-4032-8500-3acc96c4372c)
   
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1.create one upstream with 1000 pods
   2.update upstream with 1 second period
   3.watch nginx prcess cpu load
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `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: [email protected]

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

Reply via email to