eolinker / apinto

基于golang开发的网关。具有各种插件,可以自行扩展,即插即用。此外,它可以快速帮助企业管理API服务,提高API服务的稳定性和安全性。
https://www.apinto.com
Apache License 2.0
1.39k stars 203 forks source link

bug: If the circuit breaker policy is set to more than 1, the circuit breaker does not automatically fuse #167

Open quanbetter opened 1 month ago

quanbetter commented 1 month ago

Current Behavior

The circuit breaker policy exceeds 1 It doesn't fuse automatically

Expected Behavior

Automatic fusing

Error Logs

No response

Steps to Reproduce

1.The number of failures is set to 2 2.The stress test qps is 20 and all return 500 3.Observation return image

Environment

APINTO version (run apinto version):0.17.4 Operating system (run uname -a):Darwin SZ-110200200069.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6030 arm64