@@ -38,6 +38,7 @@ resource "google_dataproc_cluster" "mycluster" {
38
38
num_instances = 1
39
39
machine_type = "n1-standard-1"
40
40
disk_config {
41
+ boot_disk_type = "pd-ssd"
41
42
boot_disk_size_gb = 10
42
43
}
43
44
}
@@ -100,7 +101,7 @@ resource "google_dataproc_cluster" "mycluster" {
100
101
101
102
- - -
102
103
103
- The ** cluster_config** block supports:
104
+ The ` cluster_config ` block supports:
104
105
105
106
``` hcl
106
107
cluster_config {
@@ -149,7 +150,7 @@ The **cluster_config** block supports:
149
150
150
151
- - -
151
152
152
- The ** cluster_config.gce_cluster_config** block supports:
153
+ The ` cluster_config.gce_cluster_config ` block supports:
153
154
154
155
``` hcl
155
156
cluster_config {
@@ -203,14 +204,15 @@ The **cluster_config.gce_cluster_config** block supports:
203
204
will be launched in.
204
205
- - -
205
206
206
- The ** cluster_config.master_config** block supports:
207
+ The ` cluster_config.master_config ` block supports:
207
208
208
209
``` hcl
209
210
cluster_config {
210
211
master_config {
211
212
num_instances = 1
212
213
machine_type = "n1-standard-1"
213
214
disk_config {
215
+ boot_disk_type = "pd-ssd"
214
216
boot_disk_size_gb = 10
215
217
num_local_ssds = 1
216
218
}
@@ -225,25 +227,31 @@ The **cluster_config.master_config** block supports:
225
227
to create for the master. If not specified, GCP will default to a predetermined
226
228
computed value (currently ` n1-standard-4 ` ).
227
229
228
- * ` disk_config.boot_disk_size_gb ` - (Optional, Computed) Size of the primary disk attached to each node, specified
230
+ * ` disk_config ` (Optional) Disk Config
231
+
232
+ * `disk_config.boot_disk_type` - (Optional) The disk type of the primary disk attached to each node.
233
+ One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
234
+
235
+ * `disk_config.boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each node, specified
229
236
in GB. The primary disk contains the boot volume and system libraries, and the
230
237
smallest allowed disk size is 10GB. GCP will default to a predetermined
231
238
computed value if not set (currently 500GB). Note: If SSDs are not
232
239
attached, it also contains the HDFS data blocks and Hadoop working directories.
233
240
234
- * ` disk_config.num_local_ssds ` - (Optional) The amount of local SSD disks that will be
241
+ * `disk_config.num_local_ssds` - (Optional) The amount of local SSD disks that will be
235
242
attached to each master cluster node. Defaults to 0.
236
243
237
244
- - -
238
245
239
- The ** cluster_config.worker_config** block supports:
246
+ The ` cluster_config.worker_config ` block supports:
240
247
241
248
``` hcl
242
249
cluster_config {
243
250
worker_config {
244
251
num_instances = 3
245
252
machine_type = "n1-standard-1"
246
253
disk_config {
254
+ boot_disk_type = "pd-standard"
247
255
boot_disk_size_gb = 10
248
256
num_local_ssds = 1
249
257
}
@@ -265,6 +273,9 @@ The **cluster_config.worker_config** block supports:
265
273
266
274
* ` disk_config ` (Optional) Disk Config
267
275
276
+ * ` disk_config.boot_disk_type ` - (Optional) The disk type of the primary disk attached to each node.
277
+ One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.
278
+
268
279
* `boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each worker node, specified
269
280
in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
270
281
computed value if not set (currently 500GB). Note: If SSDs are not
@@ -275,7 +286,7 @@ The **cluster_config.worker_config** block supports:
275
286
276
287
- - -
277
288
278
- The ** cluster_config.preemptible_worker_config** block supports:
289
+ The ` cluster_config.preemptible_worker_config ` block supports:
279
290
280
291
``` hcl
281
292
cluster_config {
@@ -303,7 +314,7 @@ will be set for you based on whatever was set for the `worker_config.machine_typ
303
314
304
315
- - -
305
316
306
- The ** cluster_config.software_config** block supports:
317
+ The ` cluster_config.software_config ` block supports:
307
318
308
319
``` hcl
309
320
cluster_config {
@@ -330,7 +341,7 @@ The **cluster_config.software_config** block supports:
330
341
331
342
- - -
332
343
333
- The ** initialization_action** block (Optional) can be specified multiple times and supports:
344
+ The ` initialization_action ` block (Optional) can be specified multiple times and supports:
334
345
335
346
``` hcl
336
347
cluster_config {
@@ -370,7 +381,6 @@ exported:
370
381
* ` cluster_config.software_config.properties ` - A list of the properties used to set the daemon config files.
371
382
This will include any values supplied by the user via ` cluster_config.software_config.override_properties `
372
383
373
- <a id =" timeouts " ></a >
374
384
## Timeouts
375
385
376
386
` google_dataproc_cluster ` provides the following
0 commit comments