Skip to content

Commit ceb5189

Browse files
committed
Update sentences based on reviewed comments
1 parent c734060 commit ceb5189

File tree

1 file changed

+7
-6
lines changed
  • docs/user-guide/horizontal-pod-autoscaling

1 file changed

+7
-6
lines changed

docs/user-guide/horizontal-pod-autoscaling/index.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,14 @@ all running pods. Example:
120120
alpha/target.custom-metrics.podautoscaler.kubernetes.io: '{"items":[{"name":"qps", "value": "10"}]}'
121121
```
122122

123-
In this case, if there are 4 pods running and each of them reports qps metric to be equal to 15, HPA will start 2 additional pods so there will be 6 pods in total. If there are multiple metrics passed in the annotation or CPU is configured as well then HPA will use the biggest
124-
number of replicas that comes from the calculations.
123+
In this case, if there are four pods running and each pods reports a QPS metric of 15 or higher, horizontal pod autoscaling will start two additional pods (for a total of six pods running).
124+
125+
If you specify multiple metrics in your annotation or if you set a target CPU utilization, horizontal pod autoscaling will scale to according to the metric that requires the highest number of replicas.
126+
127+
If you do not specify a target for CPU utilization, Kubernetes defaults to an 80% utilization threshold for horizontal pod autoscaling.
128+
129+
If you want to ensure that horizontal pod autoscaling calculates the number of required replicas based only on custom metrics, you should set the CPU utilization target to a very large value (such as 100000%). As this level of CPU utilization isn't possible, horizontal pod autoscaling will calculate based only on the custom metrics (and min/max limits).
125130

126-
At this moment, even if CPU utilization target is not specified, a default of 80% will be used.
127-
To calculate number of desired replicas based only on custom metrics, CPU utilization
128-
target should be set to a very large value (e.g. 100000%).
129-
Then CPU utilization target will unlikely be reached, leaving the decision on desired number of replicas to the custom metrics (and min/max limits).
130131

131132
## Further reading
132133

0 commit comments

Comments
 (0)