Merge pull request #15076 from jszczepkowski/hpa-e2e

Improved logging for horizontal pod autoscaler.
pull/6/head
Alex Robinson 2015-10-05 09:57:13 -07:00
commit f8c9301658
2 changed files with 3 additions and 1 deletions

View File

@ -131,6 +131,8 @@ func (a *HorizontalController) reconcileAutoscaler(hpa experimental.HorizontalPo
return fmt.Errorf("failed to rescale %s: %v", reference, err)
}
a.eventRecorder.Eventf(&hpa, "SuccessfulRescale", "New size: %d", desiredReplicas)
glog.Infof("Successfull rescale of %s, old size: %d, new size: %d, usage ratio: %f",
hpa.Name, currentReplicas, desiredReplicas, usageRatio)
} else {
desiredReplicas = currentReplicas
}

View File

@ -72,7 +72,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
})
// Backup tests, currently disabled
It("[Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU)", func() {
It("[Skipped][Horizontal pod autoscaling Suite] should scale from 1 pod to 3 pods (scale resource: CPU)", func() {
rc = NewDynamicResourceConsumer("rc", 1, 700, 0, 800, 100, f)
defer rc.CleanUp()
createCPUHorizontalPodAutoscaler(rc, "0.3")