spring-cloud/script/sentinel/gateway-server/gateway-server-degrade-rule...

11 lines
535 B
JSON
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

[
{
"resource": "feign-test", // 资源名
"count": 1000, // 当熔断策略是慢调用时此值为最大RT单位是毫秒。当熔断是策略是异常比例时此值为异常比例。当熔断策略是异常数时此值为异常数目
"timeWindow": 5, // 熔断时长,单位是秒
"grade": 0, // 0: 慢调用, 1: 异常比例2:异常数
"minRequestAmount": 2, // 最小请求数
"slowRatioThreshold": 0.2, // 比例阈值
"statIntervalMs": 10000 // 统计时长,单位毫秒
}
]