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

将数据持久化到nacos后重启sentinel控制面板获取不到规则 #3457

Open
zqztx opened this issue Oct 18, 2024 · 2 comments
Open

Comments

@zqztx
Copy link

zqztx commented Oct 18, 2024

sentinel将规则持久化到nacos后,在控制面板添加修改规则都可以同步到nacos,重启后控制面板上面就没有获取到nacos的规则了,再次添加修改规则nacos又会同步到nacos,且规则不生效,什么原因啊

@rowstop
Copy link

rowstop commented Oct 29, 2024

  1. 规则可能读的还是本地的,没有从nacos 拉取配置。 参考这个是我改造的,可以参考或者直接使用
  2. 是不是sentinel datasource 配置没有配置正确
    也可以检查是不是少了依赖,比如
<dependency>
    <groupId>com.alibaba.csp</groupId>
    <artifactId>sentinel-datasource-nacos</artifactId>
</dependency>

@zhanghaohao1
Copy link

请问该问题解决了吗?我也遇到了类似问题,问题描述:sentinel将规则持久化到nacos后,在控制面板添加修改规则都可以同步到nacos且测试规则正常,重启后控制面板上面能获取到nacos的规则但是用jmeter压测规则不生效了

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