|
63 | 63 | maxNumWorkers = flag.Int64("max_num_workers", 0, "Maximum number of workers during scaling (optional).") |
64 | 64 | diskSizeGb = flag.Int64("disk_size_gb", 0, "Size of root disk for VMs, in GB (optional).") |
65 | 65 | diskType = flag.String("disk_type", "", "Type of root disk for VMs (optional).") |
| 66 | + diskProvisionedIOPS = flag.Int64("disk_provisioned_iops", 0, "Provisioned IOPS for the root disk for VMs (optional).") |
| 67 | + diskProvisionedThroughputMibps = flag.Int64("disk_provisioned_throughput_mibps", 0, "Provisioned throughput for the root disk for VMs (optional).") |
66 | 68 | autoscalingAlgorithm = flag.String("autoscaling_algorithm", "", "Autoscaling mode to use (optional).") |
67 | 69 | zone = flag.String("zone", "", "GCP zone (optional)") |
68 | 70 | kmsKey = flag.String("dataflow_kms_key", "", "The Cloud KMS key identifier used to encrypt data at rest (optional).") |
@@ -115,6 +117,8 @@ var flagFilter = map[string]bool{ |
115 | 117 | "max_num_workers": true, |
116 | 118 | "disk_size_gb": true, |
117 | 119 | "disk_type": true, |
| 120 | + "disk_provisioned_iops": true, |
| 121 | + "disk_provisioned_throughput_mibps": true, |
118 | 122 | "autoscaling_algorithm": true, |
119 | 123 | "zone": true, |
120 | 124 | "network": true, |
@@ -396,6 +400,8 @@ func getJobOptions(ctx context.Context, streaming bool) (*dataflowlib.JobOptions |
396 | 400 | WorkerHarnessThreads: *workerHarnessThreads, |
397 | 401 | DiskSizeGb: *diskSizeGb, |
398 | 402 | DiskType: *diskType, |
| 403 | + DiskProvisionedIOPS: *diskProvisionedIOPS, |
| 404 | + DiskProvisionedThroughputMibps: *diskProvisionedThroughputMibps, |
399 | 405 | Algorithm: *autoscalingAlgorithm, |
400 | 406 | FlexRSGoal: *flexRSGoal, |
401 | 407 | MachineType: *firstNonEmpty(workerMachineType, machineType), |
|
0 commit comments