What happens if there are less calls than the number in permittedNumberOfCallsInHalfOpenState during the maxWaitDurationInHalfOpenState?

huangapple go评论88阅读模式
英文:

What happens if there are less calls than the number in permittedNumberOfCallsInHalfOpenState during the maxWaitDurationInHalfOpenState?

问题

如果在maxWaitDurationInHalfOpenState期间的半开状态中的调用次数少于permittedNumberOfCallsInHalfOpenState,文档中没有找到此信息,那么会发生什么情况?它会根据已经发出的调用计算失败率,还是会回到开放状态?

英文:

did not find this information elsewhere in the documentation, what happens if there are less calls than the number in permittedNumberOfCallsInHalfOpenState during the maxWaitDurationInHalfOpenState? does it calculate failure rate from the made calls or it goes back to open state?

答案1

得分: 2

如果有人搜索这个,经过测试,所以如果在maxWaitDurationInHalfOpenState结束之前没有达到permittedNumberOfCallsInHalfOpenState,断路器将返回到开放状态。

英文:

In case anyone will be searcing for this, tested it, so if it does not reach the permittedNumberOfCallsInHalfOpenState until maxWaitDurationInHalfOpenState is over, the circuit breaker goes back to open state.

huangapple
  • 本文由 发表于 2023年3月7日 15:50:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/75659240.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定