Skip to content

Commit

Permalink
Add support for boot_disk_type to google_dataproc_cluster (hashicorp#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored and nat-henderson committed Aug 16, 2018
1 parent 2e95059 commit 9b00eea
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions docs/r/dataproc_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ resource "google_dataproc_cluster" "mycluster" {
num_instances = 1
machine_type = "n1-standard-1"
disk_config {
boot_disk_type = "pd-ssd"
boot_disk_size_gb = 10
}
}
Expand Down Expand Up @@ -100,7 +101,7 @@ resource "google_dataproc_cluster" "mycluster" {

- - -

The **cluster_config** block supports:
The `cluster_config` block supports:

```hcl
cluster_config {
Expand Down Expand Up @@ -149,7 +150,7 @@ The **cluster_config** block supports:

- - -

The **cluster_config.gce_cluster_config** block supports:
The `cluster_config.gce_cluster_config` block supports:

```hcl
cluster_config {
Expand Down Expand Up @@ -203,14 +204,15 @@ The **cluster_config.gce_cluster_config** block supports:
will be launched in.
- - -

The **cluster_config.master_config** block supports:
The `cluster_config.master_config` block supports:

```hcl
cluster_config {
master_config {
num_instances = 1
machine_type = "n1-standard-1"
disk_config {
boot_disk_type = "pd-ssd"
boot_disk_size_gb = 10
num_local_ssds = 1
}
Expand All @@ -225,25 +227,31 @@ The **cluster_config.master_config** block supports:
to create for the master. If not specified, GCP will default to a predetermined
computed value (currently `n1-standard-4`).

* `disk_config.boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each node, specified
* `disk_config` (Optional) Disk Config

* `disk_config.boot_disk_type` - (Optional) The disk type of the primary disk attached to each node.
One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.

* `disk_config.boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each node, specified
in GB. The primary disk contains the boot volume and system libraries, and the
smallest allowed disk size is 10GB. GCP will default to a predetermined
computed value if not set (currently 500GB). Note: If SSDs are not
attached, it also contains the HDFS data blocks and Hadoop working directories.

* `disk_config.num_local_ssds` - (Optional) The amount of local SSD disks that will be
* `disk_config.num_local_ssds` - (Optional) The amount of local SSD disks that will be
attached to each master cluster node. Defaults to 0.

- - -

The **cluster_config.worker_config** block supports:
The `cluster_config.worker_config` block supports:

```hcl
cluster_config {
worker_config {
num_instances = 3
machine_type = "n1-standard-1"
disk_config {
boot_disk_type = "pd-standard"
boot_disk_size_gb = 10
num_local_ssds = 1
}
Expand All @@ -265,6 +273,9 @@ The **cluster_config.worker_config** block supports:

* `disk_config` (Optional) Disk Config

* `disk_config.boot_disk_type` - (Optional) The disk type of the primary disk attached to each node.
One of `"pd-ssd"` or `"pd-standard"`. Defaults to `"pd-standard"`.

* `boot_disk_size_gb` - (Optional, Computed) Size of the primary disk attached to each worker node, specified
in GB. The smallest allowed disk size is 10GB. GCP will default to a predetermined
computed value if not set (currently 500GB). Note: If SSDs are not
Expand All @@ -275,7 +286,7 @@ The **cluster_config.worker_config** block supports:

- - -

The **cluster_config.preemptible_worker_config** block supports:
The `cluster_config.preemptible_worker_config` block supports:

```hcl
cluster_config {
Expand Down Expand Up @@ -303,7 +314,7 @@ will be set for you based on whatever was set for the `worker_config.machine_typ

- - -

The **cluster_config.software_config** block supports:
The `cluster_config.software_config` block supports:

```hcl
cluster_config {
Expand All @@ -330,7 +341,7 @@ The **cluster_config.software_config** block supports:

- - -

The **initialization_action** block (Optional) can be specified multiple times and supports:
The `initialization_action` block (Optional) can be specified multiple times and supports:

```hcl
cluster_config {
Expand Down Expand Up @@ -370,7 +381,6 @@ exported:
* `cluster_config.software_config.properties` - A list of the properties used to set the daemon config files.
This will include any values supplied by the user via `cluster_config.software_config.override_properties`

<a id="timeouts"></a>
## Timeouts

`google_dataproc_cluster` provides the following
Expand Down

0 comments on commit 9b00eea

Please sign in to comment.