k3s/cmd
Kubernetes Submit Queue 34b4b8f526 Merge pull request #33593 from DirectXMan12/feature/hpa-pod-readiness
Automatic merge from submit-queue

HPA: Consider unready pods separately

**Release note**:

``` release-note
The Horizontal Pod Autoscaler now takes the readiness of pods into account when calculating desired replicas.
```

Currently, the HPA considers unready pods the same as ready pods when
looking at their CPU and custom metric usage.  However, pods frequently
use extra CPU during initialization, so we want to consider them
separately.

This commit causes the HPA to consider unready pods as having 0 CPU
usage when scaling up, and ignores them when scaling down.  If, when
scaling up, factoring the unready pods as having 0 CPU would cause a
downscale instead, we simply choose not to scale.  Otherwise, we simply
scale up at the reduced amount calculated by factoring the pods in at
zero CPU usage.

Similarly, if we are missing metrics for any pods, those pods will be
considered as having 0% CPU when scaling up, and 100% CPU when
scaling down.  As with the unready pods calculation, this cannot change
the direction of the scale.

The effect is that unready pods cause the autoscaler to be a bit more
conservative -- large increases in CPU usage can still cause scales,
even with unready pods in the mix, but will not cause the scale factors
to be as large, in anticipation of the new pods later becoming ready and
handling load.
2016-11-08 03:47:13 -08:00
..
clicheck autogenerated 2016-10-21 17:32:32 -07:00
gendocs autogenerated 2016-10-21 17:32:32 -07:00
genkubedocs autogenerated 2016-10-21 17:32:32 -07:00
genman autogenerated 2016-10-21 17:32:32 -07:00
genswaggertypedocs autogenerated 2016-10-21 17:32:32 -07:00
genutils autogenerated 2016-10-21 17:32:32 -07:00
genyaml autogenerated 2016-10-21 17:32:32 -07:00
hyperkube Rename master/options/{APIServer -> ServerRunOptions} 2016-10-31 10:55:19 +01:00
kube-apiserver Rename ScheduledJob to CronJob 2016-11-07 10:14:12 +01:00
kube-controller-manager HPA: Consider unready pods and missing metrics 2016-11-08 00:59:23 -05:00
kube-discovery autogenerated 2016-10-21 17:32:32 -07:00
kube-dns kube-dns logging cleanup 2016-11-03 12:38:07 -07:00
kube-proxy Default to the old behavior for proxier sync. 2016-11-06 22:45:53 -08:00
kubeadm Merge pull request #35975 from justinsb/role_labels_2 2016-11-07 15:02:58 -08:00
kubectl Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
kubelet Merge pull request #36051 from zdj6373/server-log 2016-11-08 02:52:38 -08:00
kubemark autogenerated 2016-10-24 14:47:27 -07:00
kubernetes-discovery autogenerated 2016-10-21 17:32:32 -07:00
libs/go2idl Update lister-gen 2016-11-03 20:37:41 -04:00
linkcheck autogenerated 2016-10-21 17:32:32 -07:00
mungedocs Update the latestReleaseBranch to release-1.5 in the munger. 2016-11-05 19:56:24 -07:00
OWNERS