Less flapping in probe. (#1834)

- Increase max interval between probes to 2 minutes.
- Use a minimum probe rate of 200 kbps. This is to ensure that
the probe rate is decent and can produce a stronger signal.
This commit is contained in:
Raja Subramanian
2023-06-28 12:48:38 +05:30
committed by GitHub
parent cea41e4189
commit 2b0a470474
+6 -2
View File
@@ -10,7 +10,7 @@ import (
const (
ProbeWaitBase = 5 * time.Second
ProbeBackoffFactor = 1.5
ProbeWaitMax = 30 * time.Second
ProbeWaitMax = 2 * time.Minute
ProbeSettleWait = 250
ProbeSettleWaitMax = 10 * time.Second
ProbeTrendWait = 2 * time.Second
@@ -178,7 +178,11 @@ func (p *ProbeController) InitProbe(probeGoalDeltaBps int64, expectedBandwidthUs
p.lastProbeStartTime = time.Now()
// overshoot a bit to account for noise (in measurement/estimate etc)
p.probeGoalBps = expectedBandwidthUsage + ((probeGoalDeltaBps * ProbePct) / 100)
desiredIncreaseBps := (probeGoalDeltaBps * ProbePct) / 100
if desiredIncreaseBps < ProbeMinBps {
desiredIncreaseBps = ProbeMinBps
}
p.probeGoalBps = expectedBandwidthUsage + desiredIncreaseBps
p.abortedProbeClusterId = ProbeClusterIdInvalid