| page_title | morpheus_scale_threshold Resource - terraform-provider-morpheus |
|---|---|
| subcategory | |
| description | Provides a Morpheus scale threshold resource. |
Provides a Morpheus scale threshold resource.
resource "morpheus_scale_threshold" "tf_example_scale_threshold" {
name = "example_scale_threshold"
auto_upscale = true
auto_downscale = true
min_count = 1
max_count = 3
enable_cpu_threshold = true
min_cpu_percentage = 30.0
max_cpu_percentage = 75.0
enable_memory_threshold = true
min_memory_percentage = 20.0
max_memory_percentage = 60.0
enable_disk_threshold = true
min_disk_percentage = 25.0
max_disk_percentage = 80.0
}auto_downscale(Boolean) Whether to scale down the number of instancesauto_upscale(Boolean) Whether to scale up the number of instancesmax_count(Number) The maximum number of instances to scale up tomin_count(Number) The minimum number of instances to scale down toname(String) The name of the scale threshold
enable_cpu_threshold(Boolean) Whether scaling operations based upon cpu usage is enabled or notenable_disk_threshold(Boolean) Whether scaling operations based upon disk usage is enabled or notenable_memory_threshold(Boolean) Whether scaling operations based upon memory usage is enabled or notmax_cpu_percentage(Number) The maximum memory percentage for scalingmax_disk_percentage(Number) The maximum disk percentage for scalingmax_memory_percentage(Number) The maximum memory percentage for scalingmin_cpu_percentage(Number) The minimum cpu percentage for scalingmin_disk_percentage(Number) The minimum disk percentage for scalingmin_memory_percentage(Number) The minimum memory percentage for scaling
id(String) The ID of the scale threshold
Import is supported using the following syntax:
terraform import morpheus_scale_threshold.tf_example_scale_threshold 1