Sentinel 1.8.3 源码仓库 Spring Cloud Alibaba 2.1.0.RELEASE 源码仓库

基于 Sentinel 1.8.3源码 及 Spring Cloud Alibaba 2.1.0.RELEASE源码 进行案例入门测试

一、Dashboard

直接运行 Sentinel源码中的 sentinel-dashboard

1.1、关注配置项

  1. # 访问端口(默认为:8080)
  2. server.port = 8081
  3. # 登录 Dashboard 的账号密码
  4. # If auth.enabled=false, Sentinel console disable login
  5. auth.username=sentinel
  6. auth.password=sentinel

1.2、启动界面

image.png

二、Client

直接运行 Spring Cloud alibaba源码下的 spring-cloud-alibaba-examples/sentinel-example/sentinel-core-example

1.2、关注配置项

  1. ## 配置 Sentinel Dashboard URL
  2. spring.cloud.sentinel.transport.dashboard=localhost:8081

1.3、已有PAI

image.png

1.4、访问API后,访问Dashboard

image.png