- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetResourceUtilizationRatio (0.21 sec)
-
pkg/controller/podautoscaler/metrics/utilization.go
limitations under the License. */ package metrics import ( "fmt" ) // GetResourceUtilizationRatio takes in a set of metrics, a set of matching requests, // and a target utilization percentage, and calculates the ratio of // desired to actual utilization (returning that, the actual utilization, and the raw average value)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 22 08:59:02 UTC 2022 - 2.3K bytes - Viewed (0) -
pkg/controller/podautoscaler/metrics/utilization_test.go
expectedErr error } func (tc *resourceUtilizationRatioTestCase) runTest(t *testing.T) { actualUtilizationRatio, actualCurrentUtilization, actualRawAverageValue, actualErr := GetResourceUtilizationRatio(tc.metrics, tc.requests, tc.targetUtilization) if tc.expectedErr != nil { assert.Error(t, actualErr, "there should be an error getting the utilization ratio")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 22 08:59:02 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator.go
} requests, err := calculatePodRequests(podList, container, resource) if err != nil { 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 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 20.1K bytes - Viewed (0)