- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for calculateScaleDownLimitWithBehaviors (0.19 sec)
-
pkg/controller/podautoscaler/horizontal.go
a.scaleUpEventsLock.RLock() defer a.scaleUpEventsLock.RUnlock() a.scaleDownEventsLock.RLock() defer a.scaleDownEventsLock.RUnlock() scaleDownLimit := calculateScaleDownLimitWithBehaviors(args.CurrentReplicas, a.scaleUpEvents[args.Key], a.scaleDownEvents[args.Key], args.ScaleDownBehavior) if scaleDownLimit > args.CurrentReplicas {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/horizontal_test.go
}, }) assert.Equal(t, calculated, int32(2)) } func TestCalculateScaleDownLimitWithBehaviors(t *testing.T) { policy := autoscalingv2.MinChangePolicySelect calculated := calculateScaleDownLimitWithBehaviors(5, []timestampedScaleEvent{}, []timestampedScaleEvent{}, &autoscalingv2.HPAScalingRules{ StabilizationWindowSeconds: pointer.Int32(300), SelectPolicy: &policy,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 199.3K bytes - Viewed (0)