哨兵安装
下载地址:
https://github.com/alibaba/Sentinel/releases
使用说明
https://github.com/alibaba/Sentinel/tree/master/sentinel-dashboard
控制台启动脚本
java -Dserver.port=8880 -Dcsp.sentinel.dashboard.server=localhost:8880 -Dproject.name=sentinel-dashboard -jar target/sentinel-dashboard.jar
登陆
http://47.93.136.219:8880/#/login
sentinel:sentinel
springboot集成
application.properties 添加
spring.cloud.sentinel.transport.dashboard=10.30.93.84:8880 spring.cloud.sentinel.eager=true
pom.xml 添加
<!-- Sentine --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> <version>0.2.1.RELEASE</version> </dependency>