【问题标题】:How to specify instance type in dataflow jobs?如何在数据流作业中指定实例类型?
【发布时间】:2020-06-09 04:56:37
【问题描述】:

我们正在使用数据流作业来删除数据存储条目。我们正在使用下面提到的命令。

gcloud dataflow jobs run del-data-8 --gcs-location gs://dataflow-templates/latest/Datastore_to_Datastore_Delete --parameters datastoreReadGqlQuery='select * from `ml-data`' --parameters datastoreReadProjectId=xxx --parameters datastoreDeleteProjectId=xxx

我们应该使用什么参数来指定上述数据流作业的实例类型?

【问题讨论】:

    标签: google-cloud-platform google-cloud-datastore google-cloud-dataflow


    【解决方案1】:

    您可以使用标志--machine-type 指定实例类型。更多可以选择的机器类型,可以参考this document

    希望对你有帮助。

    【讨论】:

    • 更新:现在称为 --worker-machine-type
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-21
    • 1970-01-01
    相关资源
    最近更新 更多