为了回答您的问题,
1. 可以为任何类型的组件设置这些限制吗?
是的。因为,这些限制适用于所有 Kubeflow 组件,并不特定于任何特定类型的组件。可以实现这些组件以使用一定数量的资源执行任务。
2. 这些限制是否意味着组件资源会自动缩放直到达到限制?
不,Vertex AI 不执行自动缩放。根据设置的限制,Vertex AI 选择一个合适的 VM 来执行任务。Google Cloud Pipeline Components 支持拥有工作人员池,例如“<a href="https://google-cloud-pipeline-components.readthedocs.io/en/google-cloud-pipeline-components-0.1.4/ google_cloud_pipeline_components.aiplatform.html#google_cloud_pipeline_components.aiplatform.CustomContainerTrainingJobRunOp" rel="nofollow noreferrer">CustomContainerTrainingJobRunOp" 和 "<a href="https://google-cloud-pipeline-components.readthedocs.io/en/google-cloud- pipeline-components-0.1.4/google_cloud_pipeline_components.aiplatform.html#google_cloud_pipeline_components.aiplatform.CustomPythonPackageTrainingJobRunOp" rel="nofollow noreferrer"> CustomPythonPackageTrainingJobRunOp”作为 Vertex AI 中分布式训练的一部分。否则,每个步骤只使用 1 台机器。
3. 如果没有指定这些限制会怎样?Vertex AI 是否会按其认为合适的方式扩展资源?
如果未指定限制,则“<a href="https://cloud.google.com/compute/docs/general-purpose-machines#e2_machine_types" rel="nofollow noreferrer">e2-standard-4” VM用于任务执行作为默认选项。
编辑:我已经用最新版本的文档更新了链接。