简体   繁体   中英

How to specify instance type in dataflow jobs?

We are using data flow jobs to delete the data store entries. We are using the below mentioned command.

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

What parameter we should use to specify the instance type for the above data flow job?

You can specify the instance type with the flag --machine-type . For more information on the machine types you can choose, you can refer tothis document .

I hope that helps.

You could use workerMachineType for setting them. Please refer the below doc.

https://cloud.google.com/dataflow/docs/reference/pipeline-options

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM