【发布时间】:2019-01-02 21:50:27
【问题描述】:
我正在尝试了解 metrics.rollingStats.timeInMilliseconds 和 metrics.rollingStats.numBuckets 如何协同工作。
如果我有以下配置:
circuitBreaker.requestVolumeThreshold=20
circuitBreaker.errorThresholdPercentage=50
metrics.rollingStats.timeInMilliseconds=10000
metrics.rollingStats.numBuckets=10
对我来说,这意味着: 1) 在做出决定之前,我需要在我的窗口中至少提出 20 个请求 2) 需要 50% 以上的请求失败才能打开断路器
但是桶的数量是如何起作用的呢?每个桶的 requestVolumeThreshHold 和错误阈值是多少?我试图了解是否/如何使用水桶来确定断路器跳闸。
【问题讨论】:
标签: hystrix