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
| data\_disk\_size\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Overrides the default size for the data disk(s), that is based off of the machine\_type. |`number`|`null`| no |
50
50
| data\_disk\_throughput\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Directly sets the throughput in MB/s that the data disk(s) will use. Has no effect if not using a disk type that supports it. |`number`|`null`| no |
51
51
| data\_disk\_type\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Override the 'default\_disk\_type' for the data disk. |`string`|`""`| no |
52
+
| data\_stripe\_size | Optional - default is 256k. Stripe size for data volume striping (if enable\_data\_striping = true). |`string`|`"256k"`| no |
52
53
| disk\_type | Optional - The default disk type to use for disk(s) containing log and data volumes. The default is pd-ssd, except for machines that do not support PD, in which case the default is hyperdisk-extreme. Not all disk are supported on all machine types - see https://cloud.google.com/compute/docs/disks/ for details. |`string`|`""`| no |
54
+
| enable\_data\_striping | Optional - default is false. Enable LVM striping of data volume across multiple disks. |`bool`|`false`| no |
53
55
| enable\_fast\_restart | Optional - The default is true. If set enables HANA Fast Restart. |`bool`|`true`| no |
56
+
| enable\_log\_striping | Optional - default is false. Enable LVM striping of log volume across multiple disks. |`bool`|`false`| no |
54
57
| hyperdisk\_balanced\_iops\_default | Optional - default is 3000. Number of IOPS that is set for each disk of type Hyperdisk-balanced (except for boot/usrsap/shared disks). |`number`|`3000`| no |
55
58
| hyperdisk\_balanced\_throughput\_default | Optional - default is 750. Throughput in MB/s that is set for each disk of type Hyperdisk-balanced (except for boot/usrsap/shared disks). |`number`|`750`| no |
56
59
| include\_backup\_disk | Optional - The default is true. If set creates a disk for backups. |`bool`|`true`| no |
| log\_disk\_size\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Overrides the default size for the log disk(s), that is based off of the machine\_type. |`number`|`null`| no |
62
65
| log\_disk\_throughput\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Directly sets the throughput in MB/s that the log disk(s) will use. Has no effect if not using a disk type that supports it. |`number`|`null`| no |
63
66
| log\_disk\_type\_override | Warning, do not use unless instructed or aware of the implications of using this setting. Override the 'default\_disk\_type' for the log disk. |`string`|`""`| no |
67
+
| log\_stripe\_size | Optional - default is 64k. Stripe size for log volume striping (if enable\_log\_striping = true). |`string`|`"64k"`| no |
64
68
| machine\_type | Machine type for the instances. |`string`| n/a | yes |
65
69
| network\_tags | OPTIONAL - Network tags can be associated to your instance on deployment. This can be used for firewalling or routing purposes. |`list(string)`|`[]`| no |
66
70
| nic\_type | Optional - This value determines the type of NIC to use, valid options are GVNIC and VIRTIO\_NET. If choosing GVNIC make sure that it is supported by your OS choice here https://cloud.google.com/compute/docs/images/os-details#networking.|`string`|`""`| no |
71
+
| number\_data\_disks | Optional - default is 2. Number of disks to use for data volume striping (if enable\_data\_striping = true). |`number`|`2`| no |
72
+
| number\_log\_disks | Optional - default is 2. Number of disks to use for log volume striping (if enable\_log\_striping = true). |`number`|`2`| no |
67
73
| post\_deployment\_script | OPTIONAL - gs:// or https:// location of a script to execute on the created VM's post deployment. |`string`|`""`| no |
68
74
| primary\_startup\_url | Startup script to be executed when the VM boots, should not be overridden. |`string`| `"curl -s https://storage.googleapis.com/cloudsapdeploy/terraform/latest/terraform/sap_hana/hana_startup.sh| bash -s https://storage.googleapis.com/cloudsapdeploy/terraform/latest/terraform"`| no |
69
75
| project\_id | Project id where the instances will be created. |`string`| n/a | yes |
throw="Striping not supported if log and data are on the same disk(s). To use striping set 'use_single_shared_data_log_disk=false'"
274
+
}
275
+
# tflint-ignore: terraform_unused_declarations
276
+
data"validation_warning""warn_data_striping" {
277
+
condition=var.enable_data_striping
278
+
summary="Data striping is only intended for cases where the machine level limits are higher than the hyperdisk disk level limits. Refer to https://cloud.google.com/compute/docs/disks/hyperdisks#hd-performance-limits"
279
+
}
280
+
# tflint-ignore: terraform_unused_declarations
281
+
data"validation_warning""warn_log_striping" {
282
+
condition=var.enable_log_striping
283
+
summary="Log striping is not a recommended deployment option."
Copy file name to clipboardExpand all lines: modules/sap_hana/sap_hana.tf
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,4 +76,5 @@ module "sap_hana" {
76
76
# include_backup_disk = true_or_false # default is true
77
77
# backup_disk_type = "DISK_TYPE" # default is pd-ssd, except for machines that do not support PD, in which case the default is hyperdisk-extreme. Valid types are "pd-ssd", "pd-balanced", "pd-standard", "pd-extreme", "hyperdisk-balanced", "hyperdisk-extreme".
78
78
# enable_fast_restart = true_or_false # default is true, whether to enable HANA Fast Restart
79
+
# enable_data_striping = true_or_false # default is false. Enable LVM striping of data volume across multiple disks. Data striping is only intended for cases where the machine level limits are higher than the hyperdisk disk level limits. Refer to https://cloud.google.com/compute/docs/disks/hyperdisks#hd-performance-limits
0 commit comments