Skip to content

Commit a5db34f

Browse files
committed
Update HPA Algorithm Docs for v1.15
Also changes a link to algorithm details from initial design proposal in Github.
1 parent 40ed466 commit a5db34f

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ controlled by the php-apache deployment we created in the first step of these in
8181
Roughly speaking, HPA will increase and decrease the number of replicas
8282
(via the deployment) to maintain an average CPU utilization across all Pods of 50%
8383
(since each pod requests 200 milli-cores by [kubectl run](https://github.com/kubernetes/kubernetes/blob/{{< param "githubbranch" >}}/docs/user-guide/kubectl/kubectl_run.md), this means average CPU usage of 100 milli-cores).
84-
See [here](https://git.k8s.io/community/contributors/design-proposals/autoscaling/horizontal-pod-autoscaler.md#autoscaling-algorithm) for more details on the algorithm.
84+
See [here](/docs/tasks/run-application/horizontal-pod-autoscale/#algorithm-details) for more details on the algorithm.
8585

8686
```shell
8787
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10

content/en/docs/tasks/run-application/horizontal-pod-autoscale.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,12 @@ used.
155155

156156
If multiple metrics are specified in a HorizontalPodAutoscaler, this
157157
calculation is done for each metric, and then the largest of the desired
158-
replica counts is chosen. If any of those metrics cannot be converted
158+
replica counts is chosen. If any of these metrics cannot be converted
159159
into a desired replica count (e.g. due to an error fetching the metrics
160-
from the metrics APIs), scaling is skipped.
160+
from the metrics APIs) and a scale down is suggested by the metrics which
161+
can be fetched, scaling is skipped. This means that the HPA is still capable
162+
of scaling up if one or more metrics give a `desiredReplicas` greater than
163+
the current value.
161164

162165
Finally, just before HPA scales the target, the scale recommendation is recorded. The
163166
controller considers all recommendations within a configurable window choosing the

0 commit comments

Comments
 (0)