# 6.11 Client Sentinel
# 范式
# SentinelConfig
# 配置项
名称 | 类型 | 描述 |
---|---|---|
appName | string | 应用名称 |
logPath | string | 日志路径 |
resource | string | 资源名称 |
metricType | int | 指标类型 |
count | int | 并发次数限制 |
controlBehavior | int | 操作类型 |
....
# 示例
[jupiter.sentinel]
[jupiter.sentinel.test]
appName="test-app"
logPath="/tmp/sentinel/log"
[[jupiter.sentinel.test.flowRules]]
resource="some-test"
metricType =1 # flow.QPS
count=10
controlBehavior = 0 # flow.Reject
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9