Skip to content

Commit 88a76a3

Browse files
committed
information about autoscaler using CLI
1 parent c3b5856 commit 88a76a3

16 files changed

+445
-125
lines changed

_topic_maps/_topic_map_osd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ Topics:
188188
File: aws-private-connections
189189
- Name: Configuring a private cluster
190190
File: private-cluster
191+
- Name: Cluster autoscaling
192+
File: osd-cluster-autoscaling
191193
- Name: Nodes
192194
Dir: osd_nodes
193195
Distros: openshift-dedicated
@@ -204,8 +206,6 @@ Topics:
204206
Topics:
205207
- Name: Accessing the service logs
206208
File: osd-accessing-the-service-logs
207-
# - Name: Cluster autoscaling
208-
# File: osd-cluster-autoscaling
209209
---
210210
Name: Security and compliance
211211
Dir: security

_topic_maps/_topic_map_rosa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ Topics:
294294
File: dedicated-aws-vpn
295295
- Name: Configuring AWS Direct Connect
296296
File: dedicated-aws-dc
297+
- Name: Cluster autoscaling
298+
File: rosa-cluster-autoscaling
297299
- Name: Nodes
298300
Dir: rosa_nodes
299301
Distros: openshift-rosa
@@ -309,8 +311,6 @@ Topics:
309311
File: rosa-nodes-about-autoscaling-nodes
310312
- Name: Configuring cluster memory to meet container memory and risk requirements
311313
File: nodes-cluster-resource-configure
312-
# - Name: Cluster autoscaling
313-
# File: rosa-cluster-autoscaling
314314
---
315315
Name: Security and compliance
316316
Dir: security

modules/cluster-autoscaler-about.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// * post_installation_configuration/cluster-tasks.adoc
55
// * machine_management/applying-autoscaling.adoc
66
// * osd_cluster_admin/osd_nodes/osd-nodes-about-autoscaling-nodes.adoc
7+
// * osd_cluster_admin/osd-cluster-autoscaling.adoc
8+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
79

810
:_content-type: CONCEPT
911
[id="cluster-autoscaler-about_{context}"]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-enable-cluster-autoscale-cli-after_{context}"]
7+
= Enable autoscaling after cluster creation with the ROSA CLI
8+
9+
You can use the ROSA CLI (`rosa`) to set cluster-wide autoscaling after cluster creation.
10+
11+
.Procedure
12+
13+
- After you have created a cluster, create the autoscaler:
14+
+
15+
.Example:
16+
[source,terminal]
17+
----
18+
$ rosa create autoscaler --cluster=<mycluster>
19+
----
20+
+
21+
.. You can also create the autoscaler with specific parameters using the following command:
22+
+
23+
.Example:
24+
[source,terminal]
25+
----
26+
$ rosa create autoscaler --cluster=<mycluster> <parameter>
27+
----
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-delete-cluster-autoscale-cli_{context}"]
7+
= Delete autoscaling using the ROSA CLI
8+
9+
You can delete the cluster autoscaler if you no longer want to use it.
10+
11+
- To delete the cluster autoscaler, run the following command:
12+
+
13+
.Example:
14+
[source,terminal]
15+
----
16+
$ rosa delete autoscaler --cluster=<mycluster>
17+
----
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-enable-cluster-autoscale-cli-during_{context}"]
7+
= Enable autoscaling during cluster creation with the ROSA CLI
8+
9+
You can use the ROSA CLI (`rosa`) to set cluster-wide autoscaling behavior during cluster creation. You can enable the autoscaler on the entire machine or just a cluster.
10+
11+
.Procedure
12+
13+
- During cluster creation, type `--enable autoscaling` after the cluster name to enable machine autoscaling:
14+
+
15+
.Example:
16+
[source,terminal]
17+
----
18+
$ rosa create cluster --cluster-name <cluster_name> --enable-autoscaling
19+
----
20+
+
21+
Set at least one parameter to enable cluster autoscaling by running the following command:
22+
+
23+
.Example:
24+
[source,terminal]
25+
----
26+
$ rosa create cluster --cluster-name <cluster_name> --enable-autoscaling <parameter>
27+
----
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-edit-cluster-autoscale-cli_{context}"]
7+
= Edit autoscaling after cluster creation with the ROSA CLI
8+
9+
You can edit any specific parameters of the cluster autoscaler after creating the autoscaler.
10+
11+
- To edit the cluster autoscaler, run the following command:
12+
+
13+
.Example:
14+
[source,terminal]
15+
----
16+
$ rosa edit autoscaler --cluster=<mycluster>
17+
----
18+
+
19+
.. To edit a specific parameter, run the following command:
20+
+
21+
.Example:
22+
[source,terminal]
23+
----
24+
$ rosa edit autoscaler --cluster=<mycluster> <parameter>
25+
----
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-enable-cluster-autoscale-cli-interactive_after_{context}"]
7+
= Enable autoscaling after cluster creation by using the interactive mode with the ROSA CLI
8+
9+
You can use the interactive mode of your terminal, if available, to set cluster-wide autoscaling behavior after cluster creation.
10+
11+
.Procedure
12+
13+
- After you have created a cluster, type the following command:
14+
+
15+
.Example:
16+
[source,terminal]
17+
----
18+
$ rosa create autoscaler --cluster=<mycluster> --interactive
19+
----
20+
+
21+
You can then set all available autoscaling parameters.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="rosa-enable-cluster-autoscale-cli-interactive_{context}"]
7+
= Enable autoscaling during cluster creation by using the interactive mode with the ROSA CLI
8+
9+
You can use the interactive mode of your terminal, if available, to set cluster-wide autoscaling behavior during cluster creation.
10+
11+
Interactive mode provides more information about available configurable parameters. Interactive mode also does basic checks and preflight validations, meaning that if a provided value is invalid, the terminal outputs a prompt for a valid input.
12+
13+
.Procedure
14+
15+
- During cluster creation, use the `--enable-autoscaling` and `--interactive` parameters to enable cluster autoscaling:
16+
+
17+
.Example:
18+
[source,terminal]
19+
----
20+
$ rosa create cluster --cluster-name <cluster_name> --enable-autoscaling --interactive
21+
----
22+
+
23+
When the following prompt appears, enter *y* to go through all available autoscaling options.
24+
+
25+
.Example interactive prompt:
26+
[source,terminal]
27+
----
28+
? Configure cluster-autoscaler (optional): [? for help] (y/N) y <enter>
29+
----
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa-cluster-autoscaling.adoc
4+
5+
:_content-type: REFERENCE
6+
[id="rosa-cluster-cli-autoscale-parameters_{context}"]
7+
= Cluster autoscaling parameters using the ROSA CLI
8+
9+
You can add the following parameters to the cluster creation command to configure autoscaler parameters when using the ROSA CLI (`rosa`).
10+
11+
.Configurable autoscaler parameters available with the ROSA CLI (`rosa`)
12+
13+
[cols="4",options="header"]
14+
|===
15+
|Setting
16+
|Description
17+
|Type or Range
18+
|Example/Instruction
19+
20+
|`--autoscaler-balance-similar-node-groups`
21+
|Identify node groups with the same instance type and label set, and try to balance respective sizes of those node groups.
22+
|`boolean`
23+
|Add it to set to true, omit the option to set to false.
24+
25+
|`--autoscaler-skip-nodes-with-local-storage`
26+
|If set, the cluster autoscaler does not delete nodes with pods that have local storage, for example, EmptyDir or HostPath.
27+
|`boolean`
28+
|Add it to set to true, omit the option to set to false.
29+
30+
|`--autoscaler-log-verbosity _int_`
31+
|Autoscaler log level. Replace _int_ in the command with the number you want to use.
32+
|`integer`
33+
|`--autoscaler-log-verbosity 4`
34+
35+
|`--autoscaler-max-pod-grace-period _int_`
36+
|Gives pods graceful termination time before scaling down, measured in seconds. Replace _int_ in the command with the number of seconds you want to use.
37+
|`integer`
38+
|`--autoscaler-max-pod-grace-period 0`
39+
40+
|`--autoscaler-pod-priority-threshold _int_`
41+
|The priority that a pod must exceed to cause the cluster autoscaler to deploy additional nodes. Replace _int_ in the command with the number you want to use, can be negative.
42+
|`integer`
43+
|`--autoscaler-pod-priority-threshold -10`
44+
45+
|`--autoscaler-gpu-limit _stringArray_`
46+
|Minimum and maximum number of different GPUs in cluster. Cluster autoscaler does not scale the cluster less than or greater than these numbers. The format must be a comma-separated list of "<gpu_type>,<min>,<max>".
47+
|`array`
48+
|`--autoscaler-gpu-limit nvidia.com/gpu,0,10 --autoscaler-gpu-limit amd.com/gpu,1,5`
49+
50+
|`--autoscaler-ignore-daemonsets-utilization`
51+
|If set, the cluster-autoscaler ignores daemon set pods when calculating resource utilization for scaling down.
52+
|`boolean`
53+
|Add it to set to true, omit the option to set to false.
54+
55+
|`--autoscaler-max-node-provision-time _string_`
56+
|Maximum time that the cluster autoscaler waits for a node to be provisioned. Replace _string_ in the command with an integer and time unit (ns,us,µs,ms,s,m,h).
57+
|`string`
58+
|`--autoscaler-max-node-provision-time 35m`
59+
60+
|`--autoscaler-balancing-ignored-labels _strings_`
61+
|A comma-separated list of label keys that the cluster autoscaler should ignore when comparing node groups for similarity. Replace _strings_ in the command with the relevant labels..
62+
|`string`
63+
|`--autoscaler-balancing-ignored-labels topology.ebs.csi.aws.com/zone,alpha.eksctl.io/instance-id`
64+
65+
|`--autoscaler-max-nodes-total _int_`
66+
|Maximum amount of nodes in the cluster, including the autoscaled nodes. Replace _int_ in the command with the number you want to use.
67+
|`integer`
68+
|`--autoscaler-max-nodes-total 180`
69+
70+
|`--autoscaler-min-cores _int_`
71+
|Minimum number of cores to deploy in the cluster. Replace _int_ in the command with the number you want to use.
72+
|`integer`
73+
|`--autoscaler-min-cores 0`
74+
75+
|`--autoscaler-max-cores _int_`
76+
|Maximum number of cores to deploy in the cluster. Replace _int_ in the command with the number you want to use.
77+
|`integer`
78+
|`--autoscaler-max-cores 100`
79+
80+
|`--autoscaler-min-memory _int_`
81+
|Minimum amount of memory, in GiB, in the cluster. Replace _int_ in the command with the number you want to use.
82+
|`integer`
83+
|`--autoscaler-min-memory 0`
84+
85+
|`--autoscaler-max-memory _int_`
86+
|Maximum amount of memory, in GiB, in the cluster. Replace _int_ in the command with the number you want to use.
87+
|`integer`
88+
|`--autoscaler-max-memory 4096`
89+
90+
|`--autoscaler-scale-down-enabled`
91+
|If set, the cluster autoscaler should scale down the cluster.
92+
|`boolean`
93+
|Add it to set to true, omit the option to set to false.
94+
95+
|`--autoscaler-scale-down-unneeded-time _string_`
96+
|How long a node should be unneeded before it is eligible for scale down. Replace _string_ in the command with an integer and time unit (ns,us,µs,ms,s,m,h).
97+
|`string`
98+
|`--autoscaler-scale-down-unneeded-time 1h`
99+
100+
|`--autoscaler-scale-down-utilization-threshold _float_`
101+
|Node utilization level, defined as sum of requested resources divided by capacity, below which a node can be considered for scale down. Value must be between 0 and 1.
102+
|`float`
103+
|`--autoscaler-scale-down-utilization-threshold 0.5`
104+
105+
|`--autoscaler-scale-down-delay-after-add _string_`
106+
|How long after scale up that scale down evaluation resumes. Replace _string_ in the command with an integer and time unit (ns,us,µs,ms,s,m,h).
107+
|`string`
108+
|`--autoscaler-scale-down-delay-after-add 1h`
109+
110+
|`--autoscaler-scale-down-delay-after-delete _string_`
111+
|How long after node deletion that scale down evaluation resumes. Replace _string_ in the command with an integer and time unit (ns,us,µs,ms,s,m,h).
112+
|`string`
113+
|`--autoscaler-scale-down-delay-after-delete 1h`
114+
115+
|`--autoscaler-scale-down-delay-after-failure _string_`
116+
|How long after scale down failure that scale down evaluation resumes. Replace _string_ in the command with an integer and time unit (ns,us,µs,ms,s,m,h).
117+
|`string`
118+
|`--autoscaler-scale-down-delay-after-failure 1h`
119+
120+
|===

0 commit comments

Comments
 (0)