spring-cloud-alibaba sentinel简单使用

原文链接: https://my.oschina.net/u/726964/blog/2989508

1、sentinel控制台的下载

1.1、直接下载jar包:

http://edas-public.oss-cn-hangzhou.aliyuncs.com/install_package/demo/sentinel-dashboard.jar

1.2、下载源码编译运行

https://github.com/alibaba/Sentinel

2、启动之后,在要限流的服务中配置如下信息

spring.application.name=sentinel-example   #应用名称,在限流的控制台中显示
server.port=18083                                
spring.cloud.sentinel.transport.dashboard=localhost:8080 #限流控制台的地址和端口
spring.cloud.sentinel.eager=true

3、显示的效果

访问http://localhost:8080,查看效果

spring-cloud-alibaba sentinel简单使用_第1张图片

转载于:https://my.oschina.net/u/726964/blog/2989508

你可能感兴趣的:(spring-cloud-alibaba sentinel简单使用)