Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683212451
  • Loading branch information
sjswerdlow authored and copybara-github committed Oct 7, 2024
1 parent 742742e commit 592ce59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/s4/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ resource "google_compute_disk" "sapddb11_hana_data" {
}
name = "${length(var.db_vm_names) > 0 ? var.db_vm_names[0] : "${var.vm_prefix}db11"}-hana-data-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
size = (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size) / var.number_data_disks
timeouts {
create = "1h"
Expand All @@ -75,7 +75,7 @@ resource "google_compute_disk" "sapddb11_hana_log" {
}
name = "${length(var.db_vm_names) > 0 ? var.db_vm_names[0] : "${var.vm_prefix}db11"}-hana-log-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
size = (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size) / var.number_log_disks
timeouts {
create = "1h"
Expand Down
8 changes: 4 additions & 4 deletions modules/s4_ha/db.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resource "google_compute_disk" "sapddb11_hana_data" {
}
name = "${length(var.db_vm_names) > 0 ? var.db_vm_names[0] : "${var.vm_prefix}db11"}-hana-data-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
size = (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size) / var.number_data_disks
timeouts {
create = "1h"
Expand All @@ -84,7 +84,7 @@ resource "google_compute_disk" "sapddb11_hana_log" {
}
name = "${length(var.db_vm_names) > 0 ? var.db_vm_names[0] : "${var.vm_prefix}db11"}-hana-log-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
size = (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size) / var.number_log_disks
timeouts {
create = "1h"
Expand Down Expand Up @@ -170,7 +170,7 @@ resource "google_compute_disk" "sapddb12_hana_data" {
}
name = "${length(var.db_vm_names) > 1 ? var.db_vm_names[1] : "${var.vm_prefix}db12"}-hana-data-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
provisioned_iops = var.db_data_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size)) / var.number_data_disks : null
size = (var.disk_size_map["db_disk_hana_data_size"] != 0 ? var.disk_size_map["db_disk_hana_data_size"] : var.db_disk_hana_data_size) / var.number_data_disks
timeouts {
create = "1h"
Expand All @@ -188,7 +188,7 @@ resource "google_compute_disk" "sapddb12_hana_log" {
}
name = "${length(var.db_vm_names) > 1 ? var.db_vm_names[1] : "${var.vm_prefix}db12"}-hana-log-${count.index}"
project = data.google_project.sap-project.project_id
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? ceil(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
provisioned_iops = var.db_log_disk_type == "hyperdisk-extreme" ? max(10000, 2 * (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size)) / var.number_log_disks : null
size = (var.disk_size_map["db_disk_hana_log_size"] != 0 ? var.disk_size_map["db_disk_hana_log_size"] : var.db_disk_hana_log_size) / var.number_log_disks
timeouts {
create = "1h"
Expand Down

0 comments on commit 592ce59

Please sign in to comment.