Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 112 for CurrentReplicas (0.34 sec)

  1. pkg/controller/podautoscaler/horizontal.go

    		a.storeScaleEvent(hpa.Spec.Behavior, key, currentReplicas, desiredReplicas)
    		logger.Info("Successfully rescaled",
    			"HPA", klog.KObj(hpa),
    			"currentReplicas", currentReplicas,
    			"desiredReplicas", desiredReplicas,
    			"reason", rescaleReason)
    
    		if desiredReplicas > currentReplicas {
    			actionLabel = monitor.ActionLabelScaleUp
    		} else {
    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/replica_calculator_test.go

    	fakeClient := &fake.Clientset{}
    	fakeClient.AddReactor("list", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		obj := &v1.PodList{}
    		podsCount := int(tc.currentReplicas)
    		// Failed pods are not included in tc.currentReplicas
    		if tc.podPhase != nil && len(tc.podPhase) > podsCount {
    			podsCount = len(tc.podPhase)
    		}
    		for i := 0; i < podsCount; i++ {
    			podReadiness := v1.ConditionTrue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/replica_calculator.go

    		return currentReplicas, usage, nil
    	}
    
    	newReplicas := int32(math.Ceil(newUsageRatio * float64(len(metrics))))
    	if (newUsageRatio < 1.0 && newReplicas > currentReplicas) || (newUsageRatio > 1.0 && newReplicas < currentReplicas) {
    		// return the current replicas if the change of metrics length would cause a change in scale direction
    		return currentReplicas, usage, nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2/horizontalpodautoscalerstatus.go

    	LastScaleTime      *v1.Time                                             `json:"lastScaleTime,omitempty"`
    	CurrentReplicas    *int32                                               `json:"currentReplicas,omitempty"`
    	DesiredReplicas    *int32                                               `json:"desiredReplicas,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 09 02:34:54 UTC 2021
    - 5K bytes
    - Viewed (0)
  5. pkg/controller/podautoscaler/horizontal_test.go

    	conversionTestCases := []struct {
    		currentReplicas                  int32
    		expectedDesiredReplicas          int32
    		hpaMinReplicas                   int32
    		hpaMaxReplicas                   int32
    		expectedConvertedDesiredReplicas int32
    		expectedCondition                string
    		annotation                       string
    	}{
    		{
    			currentReplicas:                  5,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 199.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.yaml

      minReplicas: 2
      scaleTargetRef:
        apiVersion: apiVersionValue
        kind: kindValue
        name: nameValue
      targetCPUUtilizationPercentage: 4
    status:
      currentCPUUtilizationPercentage: 5
      currentReplicas: 3
      desiredReplicas: 4
      lastScaleTime: "2002-01-01T01:01:01Z"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 06 21:25:20 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v1.HorizontalPodAutoscaler.yaml

      minReplicas: 2
      scaleTargetRef:
        apiVersion: apiVersionValue
        kind: kindValue
        name: nameValue
      targetCPUUtilizationPercentage: 4
    status:
      currentCPUUtilizationPercentage: 5
      currentReplicas: 3
      desiredReplicas: 4
      lastScaleTime: "2002-01-01T01:01:01Z"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/autoscaling.v1.HorizontalPodAutoscaler.json

        },
        "minReplicas": 2,
        "maxReplicas": 3,
        "targetCPUUtilizationPercentage": 4
      },
      "status": {
        "observedGeneration": 1,
        "lastScaleTime": "2002-01-01T01:01:01Z",
        "currentReplicas": 3,
        "desiredReplicas": 4,
        "currentCPUUtilizationPercentage": 5
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.29.0/autoscaling.v1.HorizontalPodAutoscaler.yaml

      minReplicas: 2
      scaleTargetRef:
        apiVersion: apiVersionValue
        kind: kindValue
        name: nameValue
      targetCPUUtilizationPercentage: 4
    status:
      currentCPUUtilizationPercentage: 5
      currentReplicas: 3
      desiredReplicas: 4
      lastScaleTime: "2002-01-01T01:01:01Z"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/autoscaling.v1.HorizontalPodAutoscaler.json

        },
        "minReplicas": 2,
        "maxReplicas": 3,
        "targetCPUUtilizationPercentage": 4
      },
      "status": {
        "observedGeneration": 1,
        "lastScaleTime": "2002-01-01T01:01:01Z",
        "currentReplicas": 3,
        "desiredReplicas": 4,
        "currentCPUUtilizationPercentage": 5
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 06 21:25:20 UTC 2022
    - 1.5K bytes
    - Viewed (0)
Back to top