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
相关推荐
LL小蜗牛2 天前
Alibaba Sentinel 入门教程:从理论到实战
sentinel
飞飞9872 天前
spring sentinel
java·spring·sentinel
cui_hao_nan2 天前
Sentinel限流熔断机制实战
java·sentinel
爱编程的张同学4 天前
Spring Cloud Alibaba Sentinel安装+流控+熔断+热点+授权+规则持久化
spring cloud·sentinel
亭台烟雨中6 天前
基于注解的Sentinel限流熔断
sentinel
设计师小聂!6 天前
spring cloud alibaba Sentinel详解
java·spring cloud·sentinel
咖啡啡不加糖6 天前
Sentinel原理与SpringBoot整合实战
spring boot·后端·sentinel
神码小Z6 天前
SpringCloud实战:使用Sentinel构建可靠的微服务熔断机制
spring cloud·sentinel
曼岛_7 天前
[Java实战] Docker 快速启动 Sentinel 控制台(二十八)
java·docker·sentinel