StreamAllocator - tracking more things (#1652)

* WIP commit

* Add a probe cluster mode

* better variable naming

* fix units

* WIP commit

* WIP commit

* WIP commit

* new file

* WIP commit

* Maintain history of a few things

* correct signal

* fix typo

* WIP commmit

* gofmt

* rate not sum

* adjust edges of rate monitor

* fmt

* remove debug
This commit is contained in:
Raja Subramanian
2023-04-25 07:31:22 +05:30
committed by GitHub
parent b4ea4de5c0
commit 8ed193b231
9 changed files with 625 additions and 57 deletions
+5 -1
View File
@@ -89,7 +89,7 @@ func NewChannelObserver(params ChannelObserverParams, logger logger.Logger) *Cha
CollapseThreshold: params.EstimateCollapseThreshold,
}),
nackTracker: NewNackTracker(NackTrackerParams{
Name: params.Name + "-estimate",
Name: params.Name + "-nack",
Logger: logger,
WindowMinDuration: params.NackWindowMinDuration,
WindowMaxDuration: params.NackWindowMaxDuration,
@@ -122,6 +122,10 @@ func (c *ChannelObserver) GetNackRatio() float64 {
return c.nackTracker.GetRatio()
}
func (c *ChannelObserver) GetNackHistory() []string {
return c.nackTracker.GetHistory()
}
func (c *ChannelObserver) GetTrend() (ChannelTrend, ChannelCongestionReason) {
estimateDirection := c.estimateTrend.GetDirection()