extend the initial size of metrics distribution to 5
This prevents accrual failure detection from kicking in too soon after a cluster has started. License: MIT Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
This commit is contained in:
parent
4f0e3c85ff
commit
a763560e0c
|
@ -164,7 +164,7 @@ func (mc *Checker) failed(metric string, pid peer.ID) (float64, []float64, float
|
|||
// alerting/failure detection will fallback to the metric-expiring
|
||||
// method
|
||||
switch {
|
||||
case len(dv) < 2 && !latest.Expired():
|
||||
case len(dv) < 5 && !latest.Expired():
|
||||
return float64(v), dv, 0.0, false
|
||||
default:
|
||||
phiv := phi(float64(v), dv)
|
||||
|
|
Loading…
Reference in New Issue
Block a user