<p dir="auto">Instead of consuming 250 milli-cores, recourse consumer consumes nearly 400 milli-cores. This causes flakiness of autoscaling e2e tests:<br>
<a href="http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/" rel="nofollow">http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/</a></p>
<p dir="auto"><strong>Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)</strong><br>
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:47<br>
Oct 28 03:27:29.523: Number of replicas has changed: expected 3, got 4</p>
<p dir="auto">Logs from controller-manager:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I1028 10:27:25.876466       6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913       6 metrics_client.go:172] Metrics available: {
  &quot;items&quot;: [
   {
    &quot;metrics&quot;: [
     {
      &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;,
      &quot;value&quot;: 0
     },
     {
      &quot;timestamp&quot;: &quot;2015-10-28T10:24:00Z&quot;,
      &quot;value&quot;: 180
     }
    ],
    &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;
   },
   {
    &quot;metrics&quot;: [
     {
      &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;,
      &quot;value&quot;: 227
     }
    ],
    &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;
   },
   {
    &quot;metrics&quot;: [
     {
      &quot;timestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;,
      &quot;value&quot;: 122
     },
     {
      &quot;timestamp&quot;: &quot;2015-10-28T10:24:00Z&quot;,
      &quot;value&quot;: 80
     }
    ],
    &quot;latestTimestamp&quot;: &quot;2015-10-28T10:25:00Z&quot;
   }
  ]
 }
I1028 10:27:25.884889       6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4"><pre class="notranslate"><code class="notranslate">I1028 10:27:25.876466       6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913       6 metrics_client.go:172] Metrics available: {
  "items": [
   {
    "metrics": [
     {
      "timestamp": "2015-10-28T10:25:00Z",
      "value": 0
     },
     {
      "timestamp": "2015-10-28T10:24:00Z",
      "value": 180
     }
    ],
    "latestTimestamp": "2015-10-28T10:25:00Z"
   },
   {
    "metrics": [
     {
      "timestamp": "2015-10-28T10:25:00Z",
      "value": 227
     }
    ],
    "latestTimestamp": "2015-10-28T10:25:00Z"
   },
   {
    "metrics": [
     {
      "timestamp": "2015-10-28T10:25:00Z",
      "value": 122
     },
     {
      "timestamp": "2015-10-28T10:24:00Z",
      "value": 80
     }
    ],
    "latestTimestamp": "2015-10-28T10:25:00Z"
   }
  ]
 }
I1028 10:27:25.884889       6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4
</code></pre></div>
<p dir="auto"><a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1893/" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1893/</a></p>
<p dir="auto">Horizontal pod autoscaling (scale resource: CPU) [Skipped] [Autoscaling] ReplicationController Should scale from 1 pod to 3 pods and from 3 to 5</p>
<p dir="auto">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:56 Nov 30 13:28:33.651: timeout waiting 10m0s for pods size to be 3</p>