2

sentinel持久化到nacos

 2 years ago
source link: https://www.oschina.net/question/3209213_2323058
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

sentinel持久化到nacos

木九天 发布于 昨天 11:02
阅读 125

nacos1.4.1 + sentinel1.8.1

目前已经修改好sentinel-dashboard,启动sentinel客户端,访问需要限流接口,在簇点链路中添加流控规则,到了nacos中,但是nacos的文件格式为text,不知道是不是正确的,然后sentinel-dashboard平台获取不到nacos的规则,不清楚怎么回事,

String rules = configService.getConfig(appName + NacosConfigUtil.FLOW_DATA_ID_POSTFIX,
    NacosConfigUtil.GROUP_ID, 3000);

以下这行代码一直返回规则是空,但是提交规则确实能到nacos,不知道怎么回事哦


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK