-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add threads-per-node option for vm-instance
This commits add the [threads-per-core](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance#threads_per_core) advanced machine features option to the vm-instance module. Default is 1, as it is typically more performant in classic HPC workloads.
- Loading branch information
Showing
5 changed files
with
127 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
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
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
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
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,93 @@ | ||
# Copyright 2021 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
|
||
blueprint_name: threads-per-core | ||
|
||
vars: | ||
project_id: ## Set GCP Project ID Here ## | ||
deployment_name: threads-per-core | ||
region: us-central1 | ||
zone: us-central1-c | ||
|
||
deployment_groups: | ||
- group: primary | ||
modules: | ||
# Source is an embedded module, denoted by "modules/*" without ./, ../, / | ||
# as a prefix. To refer to a local or community module, prefix with ./, ../ or / | ||
# Example - ./modules/network/vpc | ||
- source: modules/network/pre-existing-vpc | ||
kind: terraform | ||
id: network1 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: n1-2-threads | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: n1-2-threads | ||
machine_type: n1-standard-32 | ||
threads_per_core: 2 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: n1-1-thread | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: n1-1-thread | ||
machine_type: n1-standard-32 | ||
threads_per_core: 1 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: n2-2-threads | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: n2-2-threads | ||
machine_type: n2-standard-32 | ||
threads_per_core: 2 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: n2-1-thread | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: n2-1-thread | ||
machine_type: n2-standard-32 | ||
threads_per_core: 1 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: c2-2-threads | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: c2-2-threads | ||
machine_type: c2-standard-30 | ||
threads_per_core: 2 | ||
|
||
- source: ./modules/compute/vm-instance | ||
kind: terraform | ||
id: c2-1-thread | ||
use: | ||
- network1 | ||
settings: | ||
name_prefix: c2-1-thread | ||
machine_type: c2-standard-30 | ||
threads_per_core: 1 |