A couple of stream allocator tweaks (#1628)

* A coupke of stream allocator tweaks

- Do not overshoot on catch up. It so happens that during probe
  the next higher layer is at some bit rate which is much lower
  than normal bit rate for that layer. But, by the time the probe
  ends, publisher has climbed up to normal bit rate.
  So, the probe goal although achieved is not enough.
  Allowing overshoot latches on the next layer which might be more
  than the channel capacity.
- Use a collapse window to record values in case of a only one
  or two changes in an evaluation window. Some times it happens
  that the estimate falls once or twice and stays there. By collapsing
  repeated values, it could be a long time before that fall in estimate
  is processed. Introduce a collapse window and record duplicate value
  if a value was not recorded for collapse window duration. This allows
  delayed processing of those isolated falls in estimate.

* minor clean up

* add a probe max rate

* fix max

* use max of committed, expected for max limiting

* have to probe at goal
This commit is contained in:
Raja Subramanian
2023-04-18 11:49:51 +05:30
committed by GitHub
parent 5b34d754e0
commit 93604d2415
4 changed files with 69 additions and 33 deletions
+1 -1
View File
@@ -488,7 +488,7 @@ func (c *Cluster) Process(pl ProberListener) {
pl.OnSendProbe(bytesShortFall)
}
// LK-TODO look at adapting sleep time based on how many bytes and how much time is left
// STREAM-ALLOCATOR-TODO look at adapting sleep time based on how many bytes and how much time is left
}
func (c *Cluster) String() string {