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
相关推荐
银迢迢18 小时前
SpringCloud微服务技术自用笔记
java·spring cloud·微服务·gateway·sentinel
西红柿维生素3 天前
Sentinel相关记录
网络·sentinel
重整旗鼓~8 天前
46.Sentinel规则持久化
sentinel
sniper_fandc10 天前
Spring Cloud系列—Alibaba Sentinel授权与规则管理及推送
spring cloud·sentinel
xiao-xiang10 天前
redis-sentinel基础概念及部署
数据库·redis·sentinel
Armyyyyy丶17 天前
Sentinel原理之责任链详解
java·sentinel·熔断限流
超人也会哭️呀19 天前
Redis(八):Redis高并发高可用(哨兵Sentinel)
redis·bootstrap·sentinel·哨兵·哨兵模式·高并发高可用
转身後 默落21 天前
14.Redis 哨兵 Sentinel
redis·bootstrap·sentinel
CHARLIIE1 个月前
sentinel
sentinel
曹朋羽1 个月前
spring cloud sentinel 动态规则配置
spring·spring cloud·sentinel