Log both estimate and nack ratio when congestion detected (#608)
This commit is contained in:
@@ -1620,12 +1620,14 @@ func (c *ChannelObserver) GetTrend() (ChannelTrend, ChannelCongestionReason) {
|
|||||||
"channel observer: estimate is trending downward",
|
"channel observer: estimate is trending downward",
|
||||||
"name", c.params.Name,
|
"name", c.params.Name,
|
||||||
"estimate", c.estimateTrend.ToString(),
|
"estimate", c.estimateTrend.ToString(),
|
||||||
|
"ratio", nackRatio,
|
||||||
)
|
)
|
||||||
return ChannelTrendCongesting, ChannelCongestionReasonEstimate
|
return ChannelTrendCongesting, ChannelCongestionReasonEstimate
|
||||||
case c.params.NackWindowMinDuration != 0 && !c.nackWindowStartTime.IsZero() && time.Since(c.nackWindowStartTime) > c.params.NackWindowMinDuration && nackRatio > c.params.NackRatioThreshold:
|
case c.params.NackWindowMinDuration != 0 && !c.nackWindowStartTime.IsZero() && time.Since(c.nackWindowStartTime) > c.params.NackWindowMinDuration && nackRatio > c.params.NackRatioThreshold:
|
||||||
c.logger.Debugw(
|
c.logger.Debugw(
|
||||||
"channel observer: high rate of repeated NACKs",
|
"channel observer: high rate of repeated NACKs",
|
||||||
"name", c.params.Name,
|
"name", c.params.Name,
|
||||||
|
"estimate", c.estimateTrend.ToString(),
|
||||||
"ratio", nackRatio,
|
"ratio", nackRatio,
|
||||||
)
|
)
|
||||||
return ChannelTrendCongesting, ChannelCongestionReasonLoss
|
return ChannelTrendCongesting, ChannelCongestionReasonLoss
|
||||||
|
|||||||
Reference in New Issue
Block a user