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
..
bootstrap Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
certificates Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cloud Merge pull request #59842 from ixdy/update-rules_go-02-2018 2018-02-19 22:23:05 -08:00
clusterroleaggregation Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cronjob Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
daemon Added unscheduable node UT for DaemonSet. 2018-02-28 16:11:01 +08:00
deployment Add tests for Deployments Recreate strategy when there are pods in terminal state present 2018-02-24 14:29:56 +01:00
disruption Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
endpoint Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
garbagecollector Run hack/update-all.sh 2018-02-26 17:16:14 -08:00
history Merge pull request #59365 from ayushpateria/patch-sts 2018-02-27 10:21:00 -08:00
job Merge pull request #60202 from clamoriniere1A/feature/JobBackoffWithParallelism 2018-02-23 23:15:37 -08:00
namespace Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
nodeipam Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
nodelifecycle Merge pull request #60008 from k82cn/k8s_54313_2 2018-02-20 03:13:28 -08:00
podautoscaler GetObjectMetricReplicas ignores unready pods 2018-03-07 08:13:01 -05:00
podgc Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
replicaset Merge pull request #59634 from WanLinghao/replica_set_unused_function_remove 2018-02-20 12:18:19 -08:00
replication Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
resourcequota Merge pull request #57302 from lichuqiang/resourceQuota4extendedResource 2018-02-20 14:10:46 -08:00
route Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
service Merge pull request #60555 from zhangxiaoyu-zidif/add-unit-test-for-nodenames-slice-comparison 2018-02-28 10:39:18 -08:00
serviceaccount implement token authenticator for new id tokens 2018-02-27 17:20:46 -08:00
statefulset Merge pull request #59365 from ayushpateria/patch-sts 2018-02-27 10:21:00 -08:00
testutil Revert "add node shutdown taint" 2018-02-16 12:24:27 +01:00
ttl Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
util/node Revert "add node shutdown taint" 2018-02-16 12:24:27 +01:00
volume update bazel 2018-02-27 20:23:36 +08:00
.import-restrictions add import restrictions 2016-10-13 16:10:24 -07:00
BUILD generated code 2018-02-23 08:06:42 -08:00
client_builder.go remove duplicated import 2017-11-14 17:18:17 +08:00
controller_ref_manager.go Update the DaemonSet controller to use the apps/v1 API 2018-02-22 11:38:54 -08:00
controller_ref_manager_test.go Merge pull request #50353 from zhangxiaoyu-zidif/Delete-redundant-expectError-for-controller-ref-test 2017-08-12 00:00:55 -07:00
controller_utils.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
controller_utils_test.go Removed unused function. 2017-11-14 10:53:29 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00