-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Add more description about HorizontalPodAutoscaler Object #53476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -265,6 +265,34 @@ When you create a HorizontalPodAutoscaler API object, make sure the name specifi | |||||
| More details about the API object can be found at | ||||||
| [HorizontalPodAutoscaler Object](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#horizontalpodautoscaler-v2-autoscaling). | ||||||
|
|
||||||
| HorizontalPodAutoscaler Object contains Spec and Status. | ||||||
| The `Spec` contains 4 fields: | ||||||
| 1. ScaleTargetRef: scale which resource, idenfied by APIVersion, Kind and Name. | ||||||
| 2. Replicas Constraints: MinReplicas and MaxReplicas. | ||||||
| 3. Metrics: scale based on what. | ||||||
| 4. Behavior: ScaleUp and ScaleDown, which contains Stabilitzation Window and Policies. | ||||||
|
|
||||||
| The `Metrics` supports 4 different sources: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||||||
| 1. Object | ||||||
| 2. Pods | ||||||
| 3. Resource | ||||||
| 4. External | ||||||
| 5. ContainerResource | ||||||
|
|
||||||
| | Metric Type | Source of Data | Logic Applied | Typical Example | | ||||||
| | :--- | :--- | :--- | :--- | | ||||||
| | **Resource** | CPU / RAM usage (Built-in) | Usage vs. Request % | Scale when CPU > 80% | | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another nit, but it doesn't feel right to me to have these in a different order than they are listed just prior to the table. Maybe even alphabetize the list? |
||||||
| | **Pods** | Inside the pods you are scaling | Average of all pods | Scale when `http_requests` per pod > 50 | | ||||||
| | **Object** | Outside the pods (a different object) | Absolute value | Scale when `ingress_requests` > 1000 | | ||||||
| | **External** | Outside the cluster | Absolute value | Scale when `pubsub_queue_length` > 1000 | | ||||||
|
|
||||||
|
|
||||||
| The `Status` contains 3 information: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 1. Replicas info: CurrentReplicas and DesiredReplicas | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 2. Current Metrics | ||||||
| 3. Scaling Conditions: ScalingActive, AbleToScale, ScaleLimited. | ||||||
|
|
||||||
|
|
||||||
| ## Stability of workload scale {#flapping} | ||||||
|
|
||||||
| When managing the scale of a group of replicas using the HorizontalPodAutoscaler, | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sort of a nit, but when writing out numbers, it would be best to use the word: