Sentinel
Sentinel copied to clipboard
add a new circuitbreaker
Describe what this PR does / why we need it
实现了一个新的熔断器,主要功能是在服务出现故障时进行熔断保护,并在熔断期间允许少量请求通过(默认一个)
Does this pull request fix one issue?
fix #1433 Support circuit breaking ratio (partial rejection during the OPEN state) #1433
Describe how you did it
具体使用了令牌桶算法,熔断状态下每个请求需要使用令牌才能通过,由于每秒颁发一个令牌,即每秒通过一个请求
Describe how to verify it
1.增加测试用例 2.增加执行demo
Special notes for reviews
The broader applicability of this issue remains under discussion, so we will temporarily close the PR for now.