|
| 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