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
相关推荐
Fang fan2 天前
Redis基础数据结构
数据结构·数据库·redis·缓存·bootstrap·sentinel
回到原点的码农3 天前
SpringCloud Gateway 集成 Sentinel 详解 及实现动态监听Nacos规则配置实时更新流控规则
spring cloud·gateway·sentinel
没有bug.的程序员4 天前
黑客僵尸网络的降维打击:Spring Cloud Gateway 自定义限流剿杀 Sentinel 内存黑洞
java·网络·spring·gateway·sentinel
xiaolingting6 天前
Gateway 网关流控与限流架构指南
spring cloud·架构·gateway·sentinel
sc_爬坑之路7 天前
redis windows环境配置读写分离:一主一从 + Sentinel 完整实战
windows·redis·sentinel
sc_爬坑之路7 天前
Linux 部署 Redis:一主一从 + Sentinel 完整实战
linux·redis·sentinel
杜子不疼.7 天前
Spring Cloud 熔断降级详解:用 “保险丝“ 类比,Sentinel 实战教程
人工智能·spring·spring cloud·sentinel
yc_xym9 天前
Redis哨兵(Sentinel)机制
数据库·redis·sentinel
Thomas.Sir9 天前
深入剖析 Sentinel:阿里开源的微服务流量防卫兵
微服务·开源·sentinel
廋到被风吹走23 天前
稳定性保障:限流降级深度解析 —— Sentinel滑动窗口算法与令牌桶实现
运维·算法·sentinel