From 1b90dc96d789ac2d9f8a6aa8102bb6f217b15503 Mon Sep 17 00:00:00 2001 From: Joachim Bartosik Date: Thu, 25 Oct 2018 11:16:31 +0200 Subject: [PATCH] Change back HPA e2e tests to request 500 mCPU I increased request from 500mCPU to 1CPU in https://github.com/kubernetes/kubernetes/pull/70125 but this interacts poorly with other e2e tests (higher requests mean pods fil to schedule). So revert that change. --- test/e2e/autoscaling/horizontal_pod_autoscaling.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/e2e/autoscaling/horizontal_pod_autoscaling.go b/test/e2e/autoscaling/horizontal_pod_autoscaling.go index 37efa457428..651ece81af2 100644 --- a/test/e2e/autoscaling/horizontal_pod_autoscaling.go +++ b/test/e2e/autoscaling/horizontal_pod_autoscaling.go @@ -137,14 +137,14 @@ func scaleUp(name string, kind schema.GroupVersionKind, checkStability bool, rc } scaleTest := &HPAScaleTest{ initPods: 1, - totalInitialCPUUsage: 500, - perPodCPURequest: 1000, + totalInitialCPUUsage: 250, + perPodCPURequest: 500, targetCPUUtilizationPercent: 20, minPods: 1, maxPods: 5, firstScale: 3, firstScaleStasis: stasis, - cpuBurst: 1400, + cpuBurst: 700, secondScale: 5, } scaleTest.run(name, kind, rc, f) @@ -157,8 +157,8 @@ func scaleDown(name string, kind schema.GroupVersionKind, checkStability bool, r } scaleTest := &HPAScaleTest{ initPods: 5, - totalInitialCPUUsage: 650, - perPodCPURequest: 1000, + totalInitialCPUUsage: 325, + perPodCPURequest: 500, targetCPUUtilizationPercent: 30, minPods: 1, maxPods: 5,