Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 118 for CurrentReplicas (0.18 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. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v1/horizontalpodautoscalerstatus.go

    	ObservedGeneration              *int64   `json:"observedGeneration,omitempty"`
    	LastScaleTime                   *v1.Time `json:"lastScaleTime,omitempty"`
    	CurrentReplicas                 *int32   `json:"currentReplicas,omitempty"`
    	DesiredReplicas                 *int32   `json:"desiredReplicas,omitempty"`
    	CurrentCPUUtilizationPercentage *int32   `json:"currentCPUUtilizationPercentage,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 04 18:31:34 UTC 2021
    - 4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta1/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: Thu Mar 04 18:31:34 UTC 2021
    - 5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/client-go/applyconfigurations/apps/v1/statefulsetstatus.go

    	Replicas           *int32                                   `json:"replicas,omitempty"`
    	ReadyReplicas      *int32                                   `json:"readyReplicas,omitempty"`
    	CurrentReplicas    *int32                                   `json:"currentReplicas,omitempty"`
    	UpdatedReplicas    *int32                                   `json:"updatedReplicas,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 23:59:58 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/client-go/applyconfigurations/autoscaling/v2beta2/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: Thu Mar 04 18:31:34 UTC 2021
    - 5K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/client-go/applyconfigurations/apps/v1beta2/statefulsetstatus.go

    	Replicas           *int32                                   `json:"replicas,omitempty"`
    	ReadyReplicas      *int32                                   `json:"readyReplicas,omitempty"`
    	CurrentReplicas    *int32                                   `json:"currentReplicas,omitempty"`
    	UpdatedReplicas    *int32                                   `json:"updatedReplicas,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 25 23:59:58 UTC 2021
    - 6.6K bytes
    - Viewed (0)
Back to top