Skip to content

Commit 95a6229

Browse files
author
Sharon Yu
committed
add per_unit_storage_throughput
1 parent a39ac1c commit 95a6229

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

modules/file-system/managed-lustre/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ No modules.
271271
| <a name="input_name"></a> [name](#input\_name) | Name of the Lustre instance | `string` | n/a | yes |
272272
| <a name="input_network_id"></a> [network\_id](#input\_network\_id) | The ID of the GCE VPC network to which the instance is connected given in the format:<br/>`projects/<project_id>/global/networks/<network_name>`" | `string` | n/a | yes |
273273
| <a name="input_network_self_link"></a> [network\_self\_link](#input\_network\_self\_link) | Network self-link this instance will be on, required for checking private service access | `string` | n/a | yes |
274+
| <a name="input_per_unit_storage_throughput"></a> [per\_unit\_storage\_throughput](#input\_per\_unit\_storage\_throughput) | Throughput of the instance in MB/s/TiB. Valid values are 125, 250, 500, 1000. | `number` | `1000` | no |
274275
| <a name="input_private_vpc_connection_peering"></a> [private\_vpc\_connection\_peering](#input\_private\_vpc\_connection\_peering) | The name of the VPC Network peering connection.<br/>If using new VPC, please use community/modules/network/private-service-access to create private-service-access and<br/>If using existing VPC with private-service-access enabled, set this manually." | `string` | n/a | yes |
275276
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | ID of project in which Lustre instance will be created. | `string` | n/a | yes |
276277
| <a name="input_remote_mount"></a> [remote\_mount](#input\_remote\_mount) | Remote mount point of the Managed Lustre instance | `string` | n/a | yes |

modules/file-system/managed-lustre/main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,9 @@ resource "google_lustre_instance" "lustre_instance" {
6565
instance_id = local.instance_id
6666
location = var.zone
6767

68-
filesystem = var.remote_mount
69-
capacity_gib = var.size_gib
68+
filesystem = var.remote_mount
69+
capacity_gib = var.size_gib
70+
per_unit_storage_throughput = var.per_unit_storage_throughput
7071

7172
labels = local.labels
7273
network = var.network_id

modules/file-system/managed-lustre/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ variable "size_gib" {
7777
default = 18000
7878
}
7979

80+
variable "per_unit_storage_throughput" {
81+
description = "Throughput of the instance in MB/s/TiB. Valid values are 125, 250, 500, 1000."
82+
type = number
83+
default = 1000
84+
}
85+
8086
variable "labels" {
8187
description = "Labels to add to the Managed Lustre instance. Key-value pairs."
8288
type = map(string)

0 commit comments

Comments
 (0)