搜索

3.7. 使用 ROSA CLI 的集群自动扩展参数

download PDF

您可以在集群创建命令中添加以下参数,以便在使用 ROSA CLI (rosa)时配置自动扩展参数。

表 3.4. 可以使用 ROSA CLI (rosa)的可配置自动扩展器参数
设置描述类型或范围示例/构建

--autoscaler-balance-similar-node-groups

识别具有相同实例类型和标签的节点组,并尝试平衡这些节点组的相应大小。

布尔值

将它添加到 true,省略该选项设置为 false。

--autoscaler-skip-nodes-with-local-storage

如果设置,集群自动扩展不会删除带有本地存储的 pod 的节点,如 EmptyDir 或 HostPath。

布尔值

将它添加到 true,省略该选项设置为 false。

--autoscaler-log-verbosity int

自动缩放器日志级别。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-log-verbosity 4

--autoscaler-max-pod-grace-period int

在缩减前提供 pod 安全终止时间,单位为秒。使用您要使用的秒数替换 命令中的 int

整数

--autoscaler-max-pod-grace-period 0

--autoscaler-pod-priority-threshold int

pod 必须超过这个值才能使集群自动扩展部署额外的节点。将 命令中的 int 替换为您要使用的数字,可以是负数。

整数

--autoscaler-pod-priority-threshold -10

--autoscaler-gpu-limit stringArray

集群中不同 GPU 的最小和最大数量。集群自动扩展不会缩放集群小于这些数字。格式必须是以逗号分隔的 "{p>,<min>,<max>"。

数组

--autoscaler-gpu-limit nvidia.com/gpu,0,10 --autoscaler-gpu-limit amd.com/gpu,1,5

--autoscaler-ignore-daemonsets-utilization

如果设置,cluster-autoscaler 会在计算用于缩减资源使用率时忽略守护进程集 pod。

布尔值

将它添加到 true,省略该选项设置为 false。

--autoscaler-max-node-provision-time string

集群自动扩展等待置备节点的最长时间。使用整数和时间单位(ns,us,unmarshals,ms,s,m,h)替换命令中的 字符串

字符串

--autoscaler-max-node-provision-time 35m

--autoscaler-balancing-ignored-labels strings

以逗号分隔的标签键列表,在比较节点组时应该忽略这些键。使用相关标签替换命令中的 字符串

字符串

--autoscaler-balancing-ignored-labels topology.ebs.csi.aws.com/zone,alpha.eksctl.io/instance-id

--autoscaler-max-nodes-total int

集群中节点的最大数量,包括自动扩展节点。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-max-nodes-total 180

--autoscaler-min-cores int

在集群中部署的最小内核数。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-min-cores 0

--autoscaler-max-cores int

集群中要部署的最大内核数。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-max-cores 100

--autoscaler-min-memory int

集群中的最小内存量(以 GiB 为单位)。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-min-memory 0

--autoscaler-max-memory int

集群中的最大内存量(以 GiB 为单位)。使用您要使用的数字替换 命令中的 int

整数

--autoscaler-max-memory 4096

--autoscaler-scale-down-enabled

如果设置,集群自动扩展应该缩减集群。

布尔值

将它添加到 true,省略该选项设置为 false。

--autoscaler-scale-down-unneeded-time string

在节点有资格缩减前,应该不需要多久。使用整数和时间单位(ns,us,unmarshals,ms,s,m,h)替换命令中的 字符串

字符串

--autoscaler-scale-down-unneeded-time 1h

--autoscaler-scale-down-utilization-threshold float

节点使用率级别被定义为请求资源的总和,以下将考虑节点进行缩减。值必须在 0 到 1 之间。

浮点值

--autoscaler-scale-down-utilization-threshold 0.5

--autoscaler-scale-down-delay-after-add string

扩展后扩展评估的时长。使用整数和时间单位(ns,us,unmarshals,ms,s,m,h)替换命令中的 字符串

字符串

--autoscaler-scale-down-delay-after-add 1h

--autoscaler-scale-down-delay-after-delete string

删除节点后缩减评估的时长。使用整数和时间单位(ns,us,unmarshals,ms,s,m,h)替换命令中的 字符串

字符串

--autoscaler-scale-down-delay-after-delete 1h

--autoscaler-scale-down-delay-after-failure string

缩减故障后缩减评估的时长。使用整数和时间单位(ns,us,unmarshals,ms,s,m,h)替换命令中的 字符串

字符串

--autoscaler-scale-down-delay-after-failure 1h

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.