spring-cloud/script/sentinel/system-server/system-server-degrade-rules...

12 lines
702 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": "/degrade-test",
"grade": 0, // 熔断策略支持慢调用比例0异常比例1异常数2策略
"count": 1000, // 慢调用比例模式下为慢调用临界 RT超出该值计为慢调用单位ms异常比例/异常数模式下为对应的阈值
"slowRatioThreshold": 0.1,// 慢调用比例阈值仅慢调用比例模式有效1.8.0 引入)
"minRequestAmount": 10, //熔断触发的最小请求数,请求数小于该值时即使异常比率超出阈值也不会熔断
"timeWindow": 10, // 熔断时长,单位为 s
"statIntervalMs": 1000 // 统计时长(单位为 ms如 60*1000 代表分钟级
}
]