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
相关推荐
转身後 默落16 小时前
14.Redis 哨兵 Sentinel
redis·bootstrap·sentinel
CHARLIIE5 天前
sentinel
sentinel
曹朋羽6 天前
spring cloud sentinel 动态规则配置
spring·spring cloud·sentinel
java叶新东老师9 天前
四、搭建springCloudAlibaba2021.1版本分布式微服务-加入openFeign远程调用和sentinel流量控制
分布式·微服务·sentinel
曹朋羽12 天前
Spring Cloud Alibaba Sentinel 基本工作原理源码阅读
sentinel
Zfox_15 天前
Redis:哨兵(Sentinel)
服务器·数据库·redis·缓存·sentinel
Bug改不动了16 天前
微服务雪崩防护最佳实践之sentinel
java·sentinel
朱杰jjj17 天前
Sentinel配置Nacos持久化
sentinel
AI_RSER17 天前
基于GEE与哨兵2号的土地覆盖分类方法及实现
机器学习·信息可视化·分类·sentinel·可视化·遥感·gee
@淡 定21 天前
Sentinel热点参数限流完整示例实现
windows·sentinel