This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.17.2. 在集群创建时实现 worker 延迟配置集
重要
要编辑安装程序的配置,首先需要使用命令 openshift-install create manifests 来创建默认节点清单,以及其他清单 YAML 文件。在添加 workerLatencyProfile 前,该文件结构必须存在。安装的平台可能具有不同的要求。有关特定平台,请参阅文档中的安装部分。
workerLatencyProfile 必须按以下顺序添加到清单中:
- 使用适合您安装的文件夹名称,创建构建集群所需的清单。
-
创建 YAML 文件以定义
config.node。该文件必须位于manifests目录中。 -
第一次在清单中定义
workerLatencyProfile时,在集群创建时指定任何配置集:Default,MediumUpdateAverageReaction或LowUpdateSlowReaction。
验证
以下是一个清单创建示例,显示清单文件中的
spec.workerLatencyProfileDefault值:openshift-install create manifests --dir=<cluster-install-dir>
$ openshift-install create manifests --dir=<cluster-install-dir>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 编辑清单并添加值。在本例中,我们使用
vi显示添加了 "Default"workerLatencyProfile值的示例清单文件:vi <cluster-install-dir>/manifests/config-node-default-profile.yaml
$ vi <cluster-install-dir>/manifests/config-node-default-profile.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
Copy to Clipboard Copied! Toggle word wrap Toggle overflow