Sentinel

微服务流量控制组件

1.搭建Sentinel控制台

①:下载jar包,下载地址https://github.com/alibaba/Sentinel/releases

②:在命令行终端执行:

复制代码
java -Dserver.port=8090 -Dcsp.sentinel.dashboard.server=localhost:8090 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard.jar

③:访问http://localhost:8090页面,进入控制台,默认密码为sentinel。

2.微服务整合

①:引入sentinel依赖

XML 复制代码
<!--sentinel-->
<dependency>
    <groupId>com.alibaba.cloud</groupId> 
    <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>

②:修改application.yaml文件

XML 复制代码
spring:
  cloud: 
    sentinel:
      transport:
        dashboard: localhost:8090
相关推荐
半旧夜夏11 小时前
【Sentinel】结合Nacos实现配置持久化
sentinel
无心水18 小时前
【分布式利器:限流】3、微服务分布式限流:Sentinel集群限流+Resilience4j使用教程
分布式·微服务·架构·sentinel·分布式限流·resilience4j·分布式利器
百***61871 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
pengzhuofan1 天前
Sentinel 服务保护
java·微服务·sentinel
20岁30年经验的码农2 天前
Java Sentinel流量控制与熔断降级框架详解
java·开发语言·sentinel
q***97912 天前
使用bitnamiredis-sentinel部署Redis 哨兵模式
数据库·redis·sentinel
h***06655 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
7***A4436 天前
后端服务熔断降级:Sentinel配置
sentinel
b***66616 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
ANYOLY7 天前
Sentinel 限流算法详解
算法·sentinel