You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在us-central-2使用Dataflow Prime遇e2-standard-2机器类型不存在错误咨询

问题解答

错误原因及是否符合预期

这个错误是符合预期的,核心原因是GCP不同区域支持的虚拟机机型存在差异:us-central-2(芝加哥区域)的可用机型中没有e2-standard-2,而us-central-1(爱荷华区域)支持该机型,跨区域运行时自然会触发机型不存在的报错。

能否在us-central-2使用Dataflow Prime

完全可以在us-central-2使用Dataflow Prime,只需调整作业的机型配置适配该区域的可用机型即可,具体操作如下:

1. 确认us-central-2的可用机型

通过gcloud命令查看目标可用区(如us-central2-b)支持的所有机型:

gcloud compute machine-types list --zone=us-central2-b

你会看到该区域支持的机型列表,比如e2-standard-4、n2-standard-2、n1-standard-2等。

2. 调整作业参数

在你的Dataflow作业参数中,添加或修改以下配置:

  • 直接指定worker使用的机型(以n2-standard-2为例):
    "--worker_machine_type=n2-standard-2",
    
  • 若启用动态扩缩容,可配置机型白名单,限定Dataflow只能从该区域可用机型中选择:
    "--machine_type_allowlist=n2-standard-2,n2-standard-4,e2-standard-4",
    

3. 验证配置

调整参数后重新提交作业,Dataflow会使用你指定的、us-central-2支持的机型启动worker节点,即可规避机型不存在的错误。

内容的提问来源于stack exchange,提问作者bill

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 15:53:08