Conmi的正确答案——Dubbo部署Sentinel时出现“NoClassDefFoundError: com/alibaba/csp/sentinel/spi/ServiceLoaderUtil”
Sentinel
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
项目地址:https://gitcode.com/gh_mirrors/sentine/Sentinel
免费下载资源
·
Dubbo版本:2.7.13
Sentinel版本:1.8.4
正确答案:
<!--dubbo对接Sentinel只需要在pom.xml导入两个包即可-->
<!-- Sentinel adapter and transport -->
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-dubbo-adapter</artifactId>
<version>1.8.4</version>
</dependency>
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-transport-simple-http</artifactId>
<version>1.8.4</version>
</dependency>
需要被sentinel-dashboard发现的话,则需要在VM配置里追加“-Dcsp.sentinel.dashboard.server=你的控制台IP:你的控制台访问端口”
需要读取nacos的sentinel的持久化配置则需要加多一个包:
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-nacos</artifactId>
<version>1.8.4</version>
</dependency>
GitHub 加速计划 / sentine / Sentinel
22.24 K
7.98 K
下载
alibaba/Sentinel: Sentinel 是阿里巴巴开源的一款面向分布式服务架构的流量控制、熔断降级组件,提供实时监控、限流、降级和系统保护功能,适用于微服务治理场景。
最近提交(Master分支:1 个月前 )
195150bc
* fix issue 2485 which occur oom when using async servlet request.
* optimize imports
* 1. fix the same issue in the webmvc-v6x
2. improve based on review comments 27 天前
b78b09d3
30 天前
更多推荐
已为社区贡献5条内容
所有评论(0)