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.QPScount=10controlBehavior = 0 # flow.Reject
(opens new window)