Try up-allocation on neutral trend. (#3235)
* Try up-allocation on neutral trend. Some probes end up with neutral trend due to getting much estimates of same value. It is okay to try up-allocating in those cases. Otherwise, the stream allocator some times gets stuck and does not up-allocate at all as all probes end up neutral. Changing the name of the signal to `NotCongesting` to signify it is either neutral or clearing. * wait 5 RTT for probe to finalize * trend detector object encoder
This commit is contained in:
@@ -48,6 +48,7 @@ func (c channelTrend) String() string {
|
||||
}
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
type channelCongestionReason int
|
||||
|
||||
const (
|
||||
@@ -195,7 +196,7 @@ func (c *channelObserver) MarshalLogObject(e zapcore.ObjectEncoder) error {
|
||||
}
|
||||
|
||||
e.AddString("name", c.params.Name)
|
||||
e.AddString("estimate", c.estimateTrend.String())
|
||||
e.AddObject("estimate", c.estimateTrend)
|
||||
e.AddObject("nack", c.nackTracker)
|
||||
|
||||
channelTrend, channelCongestionReason := c.GetTrend()
|
||||
|
||||
@@ -61,7 +61,7 @@ var (
|
||||
DefaultProbeControllerConfig = ProbeControllerConfig{
|
||||
ProbeRegulator: ccutils.DefaultProbeRegulatorConfig,
|
||||
|
||||
SettleWaitNumRTT: 10,
|
||||
SettleWaitNumRTT: 5,
|
||||
SettleWaitMin: 500 * time.Millisecond,
|
||||
SettleWaitMax: 10 * time.Second,
|
||||
}
|
||||
|
||||
@@ -320,10 +320,10 @@ func (r *RemoteBWE) ProbeClusterFinalize() (ccutils.ProbeSignal, int64, bool) {
|
||||
"probeClusterInfo", pci,
|
||||
)
|
||||
|
||||
probeSignal := ccutils.ProbeSignalClearing
|
||||
probeSignal := ccutils.ProbeSignalNotCongesting
|
||||
if probeCongestionState != bwe.CongestionStateNone {
|
||||
probeSignal = ccutils.ProbeSignalCongesting
|
||||
} else if trend, _ := pco.GetTrend(); !pco.HasEnoughEstimateSamples() || trend == channelTrendNeutral {
|
||||
} else if !pco.HasEnoughEstimateSamples() {
|
||||
probeSignal = ccutils.ProbeSignalInconclusive
|
||||
} else {
|
||||
highestEstimate := pco.GetHighestEstimate()
|
||||
|
||||
Reference in New Issue
Block a user