spring-cloud-alibaba sentinel简单使用

一、sentinel控制台的下载

1.一、直接下载jar包:git

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

1.二、下载源码编译运行github

https://github.com/alibaba/Sentinel

二、启动以后,在要限流的服务中配置以下信息

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

三、显示的效果

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

相关文章
相关标签/搜索