You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support arbitrary statistic duration for flow control and refactor internal implementation (#200)
* Support arbitrary statistic duration for flow control. Add `StatIntervalInMs` attribute in flow.Rule. When StatIntervalInMs > globalInterval or < bucketLength, we create a new sliding window for it.
* Add stat reuse mechanism for flow rules
* Make threshold of flow rule "request amount per interval" rather than QPS.
* Refine internal implementation
IllegalGlobalStatisticParamsError=errors.New("Invalid parameters, sampleCount or interval, for resource's global statistic")
61
+
IllegalStatisticParamsError=errors.New("Invalid parameters, sampleCount or interval, for metric statistic")
62
+
GlobalStatisticNonReusableError=errors.New("The parameters, sampleCount and interval, mismatch for reusing between resource's global statistic and readonly metric statistic.")
0 commit comments