mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 22:05:39 +00:00
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",
|
||||
"name", c.params.Name,
|
||||
"estimate", c.estimateTrend.ToString(),
|
||||
"ratio", nackRatio,
|
||||
)
|
||||
return ChannelTrendCongesting, ChannelCongestionReasonEstimate
|
||||
case c.params.NackWindowMinDuration != 0 && !c.nackWindowStartTime.IsZero() && time.Since(c.nackWindowStartTime) > c.params.NackWindowMinDuration && nackRatio > c.params.NackRatioThreshold:
|
||||
c.logger.Debugw(
|
||||
"channel observer: high rate of repeated NACKs",
|
||||
"name", c.params.Name,
|
||||
"estimate", c.estimateTrend.ToString(),
|
||||
"ratio", nackRatio,
|
||||
)
|
||||
return ChannelTrendCongesting, ChannelCongestionReasonLoss
|
||||
|
||||
Reference in New Issue
Block a user