You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-autoscaling/4951-configurable-hpa-tolerance/README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,15 +147,15 @@ updates.
147
147
HPAs define one (or more) metrics (e.g. CPU utilization) on which autoscaling is based. The number of replicas is derived from the ratio between the *expected* and *current* value of this metric ([Algorithm details][]).
148
148
149
149
For example, for a workload with 100 `currentReplicas` and a usage ratio
150
-
(`currentMetricValue`/`desiredMetricValue`) of 1.07, the calculated `desiredReplicas`
150
+
(`currentMetricValue`/`desiredMetricValue`) of 1.07, the calculated `desiredReplicas`
151
151
would be 107 (100 * 1.07).
152
152
153
-
However, to avoid flapping, scaling actions are skipped if the usage ratio is approximately 1, within a
153
+
However, to avoid flapping, scaling actions are skipped if the usage ratio is approximately 1, within a
154
154
globally-configurable *tolerance*, set to 10% by default. In the example above, no scaling action would
155
155
take place, since the ratio is within this tolerance.
156
156
157
-
This proposal adds a parameter to HPAs allowing users to configure this tolerance per HPA resource.
158
-
For the example above, we could configure the tolerance in the workload's HPA to 5%, which would
157
+
This proposal adds a parameter to HPAs allowing users to configure this tolerance per HPA resource.
158
+
For the example above, we could configure the tolerance in the workload's HPA to 5%, which would
159
159
allow the scale-up to 107 replicas to proceed.
160
160
161
161
[Horizontal Pod Autoscaler]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
@@ -201,11 +201,11 @@ We propose to add a new field to the existing [`HPAScalingRules`][] object:
201
201
202
202
-`tolerance`: (float) the minimum change (from 1.0) in the desired-to-actual metrics ratio for the horizontal pod autoscaler to consider scaling. Must be greater than or equal to 0.
203
203
204
-
The `tolerance` field is optional, and when not specified the HPA will continue to use the
205
-
value of the global `--horizontal-pod-autoscaler-tolerance` as the tolerance for scaling
204
+
The `tolerance` field is optional, and when not specified the HPA will continue to use the
205
+
value of the global `--horizontal-pod-autoscaler-tolerance` as the tolerance for scaling
206
206
calculations.
207
207
208
-
Since there are separate `HPAScalingRules` objects defined for an HPA's
208
+
Since there are separate `HPAScalingRules` objects defined for an HPA's
209
209
`spec.behavior.scaleUp` and `spec.behavior.scaleDown`, it is possible to specify different
210
210
`tolerance` values for scaling up vs. scaling down.
0 commit comments