Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetMetricReplicas (0.14 sec)

  1. pkg/controller/podautoscaler/replica_calculator.go

    	return replicaCount, usage, timestamp, err
    }
    
    // GetMetricReplicas calculates the desired replica count based on a target metric usage
    // (as a milli-value) for pods matching the given selector in the given namespace, and the
    // current replica count
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  2. pkg/controller/podautoscaler/horizontal.go

    	replicaCountProposal, usageProposal, timestampProposal, err := a.replicaCalc.GetMetricReplicas(currentReplicas, metricSpec.Pods.Target.AverageValue.MilliValue(), metricSpec.Pods.Metric.Name, hpa.Namespace, selector, metricSelector)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  3. pkg/controller/podautoscaler/replica_calculator_test.go

    	case podMetric:
    		outReplicas, outUsage, outTimestamp, err = replicaCalc.GetMetricReplicas(tc.currentReplicas, tc.metric.targetUsage, tc.metric.name, testNamespace, selector, nil)
    	default:
    		t.Fatalf("Unknown metric type: %d", tc.metric.metricType)
    	}
    
    	if tc.expectedError != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
Back to top