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
相关推荐
递归尽头是星辰2 天前
Spring Cloud Alibaba 核心理论体系:Nacos、Sentinel、Seata深度解析
spring cloud·nacos·sentinel·seata·微服务治理
daladongba4 天前
Sentinel的原理与应用
sentinel
liushangzaibeijing4 天前
sentinel动态规则和持久化
sentinel·规则持久化·动态规则
liushangzaibeijing4 天前
Sentinel组件学习使用
sentinel·限流·熔断·服务降级
我是一只小青蛙8884 天前
分布式流量守卫者:Sentinel深度解析
分布式·sentinel
廋到被风吹走7 天前
【Spring】Spring Cloud Gateway 网关架构深度解析:路由、过滤器、限流与 Sentinel 集成
spring·架构·sentinel
xiaolyuh1238 天前
Alibaba Sentinel 全解析
系统架构·sentinel·限流
9***g6878 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
DKunYu10 天前
9.熔断和限流 - Alibaba Sentinel
spring cloud·微服务·sentinel
南屿欣风11 天前
Sentinel 资源异常处理优先级笔记
spring boot·笔记·sentinel