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

   ### Current Behavior
   
   我观察了control-plane日志当上游地址发生变化会触发如下操作进行地址刷新.
   ```
   2023/03/08 11:09:13 [info] 52#52: *685 [lua] config_etcd.lua:477: 
sync_data(): update data by key: 16690fc3, context: ngx.timer
   2023/03/08 11:09:13 [info] 52#52: *685 [lua] upstream.lua:566: filter(): 
filter upstream: 
{"key":"\/apisix\/upstreams\/16690fc3","createdIndex":48,"clean_handlers":"table:
 
0x7f35b40c1470","modifiedIndex":1808,"value":{"create_time":1678243899,"update_time":1678273753,"parent":{"key":"\/apisix\/upstreams\/16690fc3","createdIndex":48,"clean_handlers":{},"modifiedIndex":1808,"value":"table:
 
0x7f35886b63c0","has_domain":false},"name":"default_js-design-nginx_80","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","id":"16690fc3",`"nodes":[{"host":"10.233.64.42","priority":0,"port":80,"weight":100}],`"hash_on":"vars","desc":"Created
 by apisix-ingress-controller, DO NOT modify it 
manually","scheme":"http","pass_host":"pass"},"has_domain":false}, context: 
ngx.timer
   ```
   我观察data-plane并没有刷新地址的操作;
   ```
   2023/03/08 11:13:56 [info] 48#48: *451808 [lua] config_etcd.lua:389: 
sync_data(): waitdir key: /apisix/protos prev_index: 1664, context: ngx.timer
   2023/03/08 11:13:56 [info] 48#48: *451808 [lua] config_etcd.lua:390: 
sync_data(): res: null, err: timeout, context: ngx.timer
   2023/03/08 11:13:56 [info] 48#48: *451808 [lua] v3.lua:76: 
choose_endpoint(): choose endpoint: 
https://apisix-control-plane-control-plane:9280, context: ngx.timer
   2023/03/08 11:13:56 [info] 48#48: *451808 [lua] client.lua:123: dns_parse(): 
dns resolve apisix-control-plane-control-plane, result: 
{"name":"apisix-control-plane-control-plane.ingress-apisix.svc.cluster.local","type":1,"ttl":30,"address":"10.233.32.253","section":1,"class":1},
 context: ngx.timer
   2023/03/08 11:13:56 [info] 48#48: *451808 [lua] resolver.lua:84: 
parse_domain(): parse addr: 
{"name":"apisix-control-plane-control-plane.ingress-apisix.svc.cluster.local","type":1,"ttl":30,"address":"10.233.32.253","section":1,"class":1},
 context: ngx.timer
   ```
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1、通过helm install部署
   2、cp配置
   ```
       deployment:
         role: control_plane
         role_control_plane:
           config_provider: etcd
           conf_server:
             listen: 0.0.0.0:9280
             cert: "/conf-server-ssl/tls.crt"
             cert_key: "/conf-server-ssl/tls.key"
   ```
   3、dp配置
   ```
       apisix:    # universal configurations
         ssl:
           ssl_trusted_certificate: "/conf-ca-ssl/tls.crt"
       deployment:
         role: data_plane
         role_data_plane:
           config_provider: control_plane
           control_plane:
             host:
               - "https://apisix-control-plane-control-plane:9280";
             prefix: "/apisix"
             timeout: 30
         certs:
           cert: "/conf-client-ssl/tls.crt"
           cert_key: "/conf-client-ssl/tls.key"
   ```
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.0
   - Operating system (run `uname -a`):Ubuntu 18.06
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): 
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 
{"etcdserver":"3.5.4","etcdcluster":"3.5.0"}
   - 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