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
相关推荐
2401_8532757314 小时前
Sentinel实现原理
服务器·网络·sentinel
苏格拉没有底_coder2 天前
【Redis】Sentinel哨兵
redis·sentinel
苏格拉没有底_coder7 天前
基于 Spring Cloud Gateway + Sentinel 实现高并发限流保护机制
sentinel
未来并未来9 天前
Sentinel 流量控制安装与使用
开发语言·python·sentinel
·云扬·9 天前
【PmHub面试篇】集成 Sentinel+OpenFeign实现网关流量控制与服务降级相关面试题解答
面试·职场和发展·sentinel
ℳ₯㎕ddzོꦿ࿐9 天前
Ubuntu 24.04 上安装与 Docker 部署 Sentinel
ubuntu·docker·sentinel
小马爱记录16 天前
sentinel规则持久化
java·spring cloud·sentinel
小马爱记录16 天前
Sentinel微服务保护
spring cloud·微服务·架构·sentinel
爱编程的张同学19 天前
OpenFeign和Gateway集成Sentinel实现服务降级
spring cloud·sentinel
运维老曾19 天前
Redis-6.2.9 Sentinel 哨兵配置
redis·sentinel