-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add autoscaling to DPMS terraform provider
Update mmv1/templates/terraform/examples/go/dataproc_metastore_service_autoscaling_max_scaling_factor.tf.tmpl Co-authored-by: Nick Elliot <nickelliot@google.com> Update mmv1/templates/terraform/examples/go/dataproc_metastore_service_autoscaling_min_and_max_scaling_factor.tf.tmpl Co-authored-by: Nick Elliot <nickelliot@google.com> Update mmv1/templates/terraform/examples/go/dataproc_metastore_service_autoscaling_no_limit_config.tf.tmpl Co-authored-by: Nick Elliot <nickelliot@google.com> Update mmv1/templates/terraform/examples/go/dataproc_metastore_service_autoscaling_min_scaling_factor.tf.tmpl Co-authored-by: Nick Elliot <nickelliot@google.com> Fixes GITHUB_ISSUE_LINK
- Loading branch information
1 parent
ce618c8
commit 1381f39
Showing
5 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...s/terraform/examples/go/dataproc_metastore_service_autoscaling_max_scaling_factor.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" { | ||
service_id = "{{index $.Vars "metastore_service_name"}}" | ||
location = "us-central1" | ||
|
||
# DPMS 2 requires SPANNER database type, and does not require | ||
# a maintenance window. | ||
database_type = "SPANNER" | ||
|
||
hive_metastore_config { | ||
version = "3.1.2" | ||
} | ||
|
||
scaling_config { | ||
autoscaling_config { | ||
autoscaling_enabled = true | ||
limit_config { | ||
max_scaling_factor = 1.0 | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...orm/examples/go/dataproc_metastore_service_autoscaling_min_and_max_scaling_factor.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" { | ||
service_id = "{{index $.Vars "metastore_service_name"}}" | ||
location = "us-central1" | ||
|
||
# DPMS 2 requires SPANNER database type, and does not require | ||
# a maintenance window. | ||
database_type = "SPANNER" | ||
|
||
hive_metastore_config { | ||
version = "3.1.2" | ||
} | ||
|
||
scaling_config { | ||
autoscaling_config { | ||
autoscaling_enabled = true | ||
limit_config { | ||
min_scaling_factor = 0.1 | ||
max_scaling_factor = 1.0 | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...s/terraform/examples/go/dataproc_metastore_service_autoscaling_min_scaling_factor.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" { | ||
service_id = "{{index $.Vars "metastore_service_name"}}" | ||
location = "us-central1" | ||
|
||
# DPMS 2 requires SPANNER database type, and does not require | ||
# a maintenance window. | ||
database_type = "SPANNER" | ||
|
||
hive_metastore_config { | ||
version = "3.1.2" | ||
} | ||
|
||
scaling_config { | ||
autoscaling_config { | ||
autoscaling_enabled = true | ||
limit_config { | ||
min_scaling_factor = 0.1 | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ates/terraform/examples/go/dataproc_metastore_service_autoscaling_no_limit_config.tf.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "google_dataproc_metastore_service" "{{$.PrimaryResourceId}}" { | ||
service_id = "{{index $.Vars "metastore_service_name"}}" | ||
location = "us-central1" | ||
|
||
# DPMS 2 requires SPANNER database type, and does not require | ||
# a maintenance window. | ||
database_type = "SPANNER" | ||
|
||
hive_metastore_config { | ||
version = "3.1.2" | ||
} | ||
|
||
scaling_config { | ||
autoscaling_config { | ||
autoscaling_enabled = true | ||
} | ||
} | ||
} |