Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置中心下发配置无法实时生效 #894

Closed
whitekeyboard opened this issue Nov 25, 2020 · 2 comments
Closed

配置中心下发配置无法实时生效 #894

whitekeyboard opened this issue Nov 25, 2020 · 2 comments
Assignees

Comments

@whitekeyboard
Copy link

whitekeyboard commented Nov 25, 2020

如此示例:
https://github.com/apache/dubbo-go-samples/tree/master/configcenter/nacos/dubbo/go-server
问题一、服务的动态配置,不生效
操作步骤如下:
1、在nacos配置中心,增加DataId为BDTService.configurators,group为dubbo的配置,配置内容如下:

scope: application
configVersion: 11.2
enabled: true
configs:
  - type: "general"
    addresses: 
      - "0.0.0.0:20000"
    side: provider
    enabled: true
    parameters:
      cluster: failfast

2、启动服务器端,后查看注册的接口的cluster被修改为failfast,再次修改BDTService.configurators的配置,将cluster:failfast修改为failback,发现未生效。

加日志调试看,是第一次获取配置时,代码中默认增加了providerAddresses字段,导致无法load。

问题二,接口的动态配置DataId: com.ikurento.user.UserProvider.configurators, group:dubbo下发上述配置。按照上述配置操作也出现类似的问题。

问题三、当前配置中心下发的配置易用性较差,尤其是上述接口类的配置,还是一步一步扣代码得到的参数,而且部分参数含义理解的也不是很透彻。文档较少,注释也较少。建议可以优化一下配置中心对接的易用性。

@ztelur
Copy link
Contributor

ztelur commented Mar 16, 2021

plz assign to me

@AlexStocks
Copy link
Contributor

plz assign to me

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants