Sentinel簇点链路的降级如何设置才能生效呢?
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
开发者们您好,这应该是一个`问题`,不是`bug`。。
我是从`openfeign+ribbon+hystrix`转过来的
这样的在SpringCloud 2020.0 和 SpringCloudAlibaba 2021后 不再支持ribbon+hystrix,转而使用
spring-cloud-loadbalancer
之前使用`ribbon+hystrix`时,可以通过`ribbon`设置`readTimeout`时间来进行超时调用fallback
但是在新版中,没有`ribbon`了,我该怎么设置readTimeout来进行超时调用fallback呢?
我进行了尝试:
1.我通过dashboard找到了,`簇点链路`中对应feign调用的那个url,进行了`降级`操作
配置为
```yaml
RT:3000
比例阈值:1
熔断时长:1
最小请求书:1
统计时长:1000
```
我的provider设置了`Thread.sleep(6000)`
这里按我的理解,是当有一个请求过来,调用超过3000毫秒就触发fallback,但是事实上,没有触发,还是一直等待直到调用完成
请问是我哪里设置有问题吗?还是没有正确的使用Sentinel
期待您的回复
env:
Sentinel 1.8.1
SpringCloudAlibaba 2021.1
SpringCloud 2020.0.3
Contributor guide
Research direction
Start at the Sentinel Dashboard's 簇点链路 entry for the Feign URL and review how the listed RT, threshold, circuit duration, minimum requests, and statistics duration settings are applied. Compare that behavior with the Spring Cloud Alibaba 2021.1 and Sentinel 1.8.1 documentation, using the provider's 6000 ms delay as the reproduction case. Done means the cause of the missing fallback is identified for the stated versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100