SpringCloud AlibabaSentinel

举报
yd_249383650 发表于 2023/03/27 09:20:15 2023/03/27
【摘要】 ​ Sentinel官网https://github.com/alibaba/Sentinel中文 https://github.com/alibaba/Sentinel/wiki/%E4%BB%8B%E7%BB%8D​编辑​编辑​编辑怎么玩 服务使用中的各种问题 服务雪崩 服务降级 服务熔断 服务限流安装Sentinel控制台后台前台8080安装步骤下载https://github.com...

 Sentinel

官网

https://github.com/alibaba/Sentinel

中文 

https://github.com/alibaba/Sentinel/wiki/%E4%BB%8B%E7%BB%8D

编辑

编辑

编辑

怎么玩 

服务使用中的各种问题

 服务雪崩

 服务降级

 服务熔断

 服务限流

安装Sentinel控制台

后台

前台8080

安装步骤

下载

https://github.com/alibaba/Sentinel/releases

编辑

下载到本地sentinel-dashboard-1.7.0.jar 

java -jar sentinel-dashboard-1.7.0.jar

编辑



运行命令访问

前提

java8环境OK

8080端口不能被占用


sentinel管理界面

编辑

访问sentinel管理界面


http://localhost:8080


 

登录账号密码均为sentinel


通常需要的依赖 

 <dependencies>
        <!--SpringCloud ailibaba nacos -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
        </dependency>
        <!--SpringCloud ailibaba sentinel-datasource-nacos 后续做持久化用到-->
        <dependency>
            <groupId>com.alibaba.csp</groupId>
            <artifactId>sentinel-datasource-nacos</artifactId>
        </dependency>
        <!--SpringCloud ailibaba sentinel -->
        <dependency>
            <groupId>com.alibaba.cloud</groupId>
            <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
        </dependency>
        <!--openfeign-->
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-openfeign</artifactId>
        </dependency>
        <!-- SpringBoot整合Web组件+actuator -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <!--日常通用jar包配置-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>4.6.3</version>
        </dependency>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>


【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。