Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for calculateScaleUpLimitWithScalingRules (0.37 sec)

  1. pkg/controller/podautoscaler/horizontal.go

    			longestPolicyPeriod = policy.PeriodSeconds
    		}
    	}
    	return longestPolicyPeriod
    }
    
    // calculateScaleUpLimitWithScalingRules returns the maximum number of pods that could be added for the given HPAScalingRules
    func calculateScaleUpLimitWithScalingRules(currentReplicas int32, scaleUpEvents, scaleDownEvents []timestampedScaleEvent, scalingRules *autoscalingv2.HPAScalingRules) int32 {
    	var result int32
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal_test.go

    		})
    	}
    }
    
    func TestCalculateScaleUpLimitWithScalingRules(t *testing.T) {
    	policy := autoscalingv2.MinChangePolicySelect
    
    	calculated := calculateScaleUpLimitWithScalingRules(1, []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)
Back to top