File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import (
26
26
27
27
// defaultPollerScalerCooldownInSeconds
28
28
const (
29
- defaultPollerAutoScalerCooldown = time .Minute
29
+ defaultPollerAutoScalerCooldown = 10 * time .Second
30
30
defaultPollerAutoScalerTargetUtilization = 0.6
31
31
defaultMinConcurrentActivityPollerSize = 1
32
32
defaultMinConcurrentDecisionPollerSize = 2
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ import (
34
34
)
35
35
36
36
const (
37
- defaultAutoScalerUpdateTick = time .Second
38
- lowerPollerWaitTime = 16 * time .Millisecond
39
- upperPollerWaitTime = 256 * time .Millisecond
37
+ defaultAutoScalerUpdateTick = time .Second
38
+ lowerPollerWaitTime = 16 * time .Millisecond
39
+ upperPollerWaitTime = 256 * time .Millisecond
40
40
numberOfPollsInRollingAverage = 20
41
41
42
42
autoScalerEventPollerUpdate autoScalerEvent = "update-poller-limit"
@@ -253,7 +253,7 @@ func (c *ConcurrencyAutoScaler) scaleDownPollerPermit(pollerWaitTime time.Durati
253
253
254
254
// smoothingFunc is a log2 function with offset to smooth the scaling and address 0 values
255
255
func smoothingFunc (x time.Duration ) float64 {
256
- return math .Log2 (2 + float64 (x / time .Millisecond ))
256
+ return math .Log2 (2 + float64 (x / time .Millisecond ))
257
257
}
258
258
259
259
type number interface {
You can’t perform that action at this time.
0 commit comments