Files
kubernetes/pkg/controller
mattjmcnaughton 7e3bce7b3e GetObjectMetricReplicas ignores unready pods
Previously, when `GetObjectMetricReplicas` calculated the desired
replica count, it multiplied the usage ratio by the current number of replicas.
This method caused over-scaling when there were pods that were not ready
for a long period of time. For example, if there were pods A, B, and C,
and only pod A was ready, and the usage ratio was 500%, we would
previously specify 15 pods as the desired replicas (even though really
only one pod was handling the load).

After this change, we now multiple the usage
ratio by the number of ready pods for `GetObjectMetricReplicas`.
In the example above, we'd only desire 5 replica pods.

This change gives `GetObjectMetricReplicas` the same behavior as the
other replica calculator methods. Only `GetExternalMetricReplicas` and
`GetExternalPerPodMetricRepliacs` still allow unready pods to impact the
number of desired replicas. I will fix this issue in the following
commit.
2018-03-07 08:13:01 -05:00
..
2018-02-26 17:16:14 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 13:43:01 -08:00
2018-02-16 12:24:27 +01:00
2018-02-16 13:43:01 -08:00
2018-02-27 20:23:36 +08:00
2016-10-13 16:10:24 -07:00
2018-02-23 08:06:42 -08:00
2017-11-14 17:18:17 +08:00
2016-07-16 13:48:21 -04:00