linkt commented on issue #10422:
URL: https://github.com/apache/apisix/issues/10422#issuecomment-2412725089

   通过观察info日志可以清晰的看到正常的apisix pod发生变更的时候调用的路径为:
   2024/10/15 02:56:15 [info] 53#53: *92955852 [lua] config_etcd.lua:202: 
res_func: {
   2024/10/15 02:56:15 [info] 53#53: *92955852 [lua] config_etcd.lua:120: 
produce_res(): append res: {
   2024/10/15 02:56:15 [info] 53#53: *182428634 [lua] config_etcd.lua:414: 
http_waitdir(): http_waitdir: {
   2024/10/15 02:56:15 [info] 53#53: *182428634 [lua] config_etcd.lua:626: 
sync_data(): waitdir key: /apisix/upstreams prev_index: 31721, context: 
ngx.timer
   2024/10/15 02:56:15 [info] 53#53: *182428634 [lua] config_etcd.lua:627: 
sync_data(): res: 
{"headers":{"X-Etcd-Index":"31721"},"body":{"node":[{"modifiedIndex":31721,"value":{"labels":{"managed-by":"apisix-ingress-controller"},"desc":"Created
 by apisix-ingress-controller, DO NOT modify it 
manually","scheme":"https","timeout":{"connect":120,"send":1200,"read":1200},"type":"roundrobin","name":"cls-180l5ec4_apiserver-token_443","pass_host":"pass","nodes":[{"host":"11.128.57.47","port":28438,"weight":100}],"id":"fc7a9e3b"},"key":"/apisix/upstreams/fc7a9e3b","createdIndex":8238}]}},
 err: nil, context: ngx.timer
   2024/10/15 02:56:15 [info] 53#53: *182428634 [lua] config_etcd.lua:711: 
sync_data(): update data by key: fc7a9e3b, context: ngx.timer
   
   不正常的为:
   2024/10/15 02:56:05 [info] 54#54: *183282442 [lua] config_etcd.lua:202: 
res_func: {
   2024/10/15 02:56:05 [info] 54#54: *183282442 [lua] config_etcd.lua:120: 
produce_res(): append res: {
   2024/10/15 02:56:11 [info] 54#54: *183282442 [lua] config_etcd.lua:202: 
res_func: {
   2024/10/15 02:56:11 [info] 54#54: *183282442 [lua] config_etcd.lua:120: 
produce_res(): append res: {
   2024/10/15 02:56:11 [info] 54#54: *183282442 [lua] config_etcd.lua:202: 
res_func: {
   2024/10/15 02:56:11 [info] 54#54: *183282442 [lua] config_etcd.lua:120: 
produce_res(): append res: {
   2024/10/15 02:56:12 [info] 54#54: *183282442 [lua] config_etcd.lua:202: 
res_func: {
   2024/10/15 02:56:12 [info] 54#54: *183282442 [lua] config_etcd.lua:120: 
produce_res(): append res: {
   可以看到sync_data一直未响应


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