Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for usageRatio (0.39 sec)

  1. pkg/controller/podautoscaler/replica_calculator.go

    		return 0, 0, 0, time.Time{}, err
    	}
    
    	usageRatio, utilization, rawUtilization, err := metricsclient.GetResourceUtilizationRatio(metrics, requests, targetUtilization)
    	if err != nil {
    		return 0, 0, 0, time.Time{}, err
    	}
    
    	scaleUpWithUnready := len(unreadyPods) > 0 && usageRatio > 1.0
    	if !scaleUpWithUnready && len(missingPods) == 0 {
    		if math.Abs(1.0-usageRatio) <= c.tolerance {
    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/metrics/utilization.go

    // and calculates the ratio of desired to actual usage
    // (returning that and the actual usage)
    func GetMetricUsageRatio(metrics PodMetricsInfo, targetUsage int64) (usageRatio float64, currentUsage int64) {
    	metricsTotal := int64(0)
    	for _, metric := range metrics {
    		metricsTotal += metric.Value
    	}
    
    	currentUsage = metricsTotal / int64(len(metrics))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 22 08:59:02 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top