You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.`,
1102
1109
},
1110
+
"turbo_mode": {
1111
+
Type: schema.TypeString,
1112
+
Optional: true,
1113
+
AtLeastOneOf: advancedMachineFeaturesKeys,
1114
+
Description: `Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".`,
Description: `The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance\'s nominal CPU count and the underlying platform\'s SMT width.`,
Copy file name to clipboardExpand all lines: mmv1/third_party/terraform/services/compute/resource_compute_instance_template.go.tmpl
+6
Original file line number
Diff line number
Diff line change
@@ -964,6 +964,12 @@ be from 0 to 999,999,999 inclusive.`,
964
964
ForceNew: true,
965
965
Description: `The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.`,
966
966
},
967
+
"turbo_mode": {
968
+
Type: schema.TypeString,
969
+
Optional: true,
970
+
Description: `Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".`,
machine_type = "n2-standard-2" // Nested Virt isn't supported on E2 and N2Ds https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions and https://cloud.google.com/compute/docs/instances/disabling-smt#limitations
Copy file name to clipboardExpand all lines: mmv1/third_party/terraform/services/compute/resource_compute_instance_test.go.tmpl
+6-5
Original file line number
Diff line number
Diff line change
@@ -7158,7 +7158,7 @@ data "google_compute_image" "my_image" {
7158
7158
7159
7159
resource "google_compute_instance" "foobar" {
7160
7160
name = "%s"
7161
-
machine_type = "n1-standard-2" // Nested Virt isn't supported on E2 and N2Ds https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions and https://cloud.google.com/compute/docs/instances/disabling-smt#limitations
7161
+
machine_type = "c4-standard-2"
7162
7162
zone = "us-central1-a"
7163
7163
7164
7164
boot_disk {
@@ -7186,7 +7186,7 @@ data "google_compute_image" "my_image" {
7186
7186
7187
7187
resource "google_compute_instance" "foobar" {
7188
7188
name = "%s"
7189
-
machine_type = "n1-standard-2" // Nested Virt isn't supported on E2 and N2Ds https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions and https://cloud.google.com/compute/docs/instances/disabling-smt#limitations
Copy file name to clipboardExpand all lines: mmv1/third_party/terraform/services/compute/resource_compute_region_instance_template.go.tmpl
+6
Original file line number
Diff line number
Diff line change
@@ -916,6 +916,12 @@ be from 0 to 999,999,999 inclusive.`,
916
916
ForceNew: true,
917
917
Description: `The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.`,
918
918
},
919
+
"turbo_mode": {
920
+
Type: schema.TypeString,
921
+
Optional: true,
922
+
Description: `Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".`,
machine_type = "n2-standard-2" // Nested Virt isn't supported on E2 and N2Ds https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions and https://cloud.google.com/compute/docs/instances/disabling-smt#limitations
*`enable_nested_virtualization` (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
569
+
*`enable_nested_virtualization`- (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
570
570
571
-
*`threads_per_core` (Optional) he number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
571
+
*`threads_per_core`- (Optional) The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
572
572
573
-
*`visible_core_count` (Optional) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
573
+
*`turbo_mode` - (Optional) Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
574
+
575
+
*`visible_core_count` - (Optional) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
*`enable_nested_virtualization` (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
725
+
*`enable_nested_virtualization`- (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
726
726
727
-
*`threads_per_core` (Optional) The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
727
+
*`threads_per_core`- (Optional) The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
728
728
729
-
*`visible_core_count` (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
729
+
*`turbo_mode` - (Optional) Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
730
+
731
+
*`visible_core_count` - (Optional) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
*`enable_nested_virtualization` (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
685
+
*`enable_nested_virtualization`- (Optional) Defines whether the instance should have [nested virtualization](#on_host_maintenance) enabled. Defaults to false.
686
686
687
-
*`threads_per_core` (Optional) The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
687
+
*`threads_per_core`- (Optional) The number of threads per physical core. To disable [simultaneous multithreading (SMT)](https://cloud.google.com/compute/docs/instances/disabling-smt) set this to 1.
688
688
689
-
*`visible_core_count` (Optional, ) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
689
+
*`turbo_mode` - (Optional) Turbo frequency mode to use for the instance. Supported modes are currently either `ALL_CORE_MAX` or unset (default).
690
+
691
+
*`visible_core_count` - (Optional) The number of physical cores to expose to an instance. [visible cores info (VC)](https://cloud.google.com/compute/docs/instances/customize-visible-cores).
0 commit comments