Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

add a new circuitbreaker

Open Kevin-Xu666 opened this issue 7 months ago • 1 comments

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

Kevin-Xu666 avatar May 24 '25 06:05 Kevin-Xu666

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 24 '25 06:05 CLAassistant

The broader applicability of this issue remains under discussion, so we will temporarily close the PR for now.

LearningGp avatar Aug 19 '25 11:08 LearningGp