Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 2.16 KB

File metadata and controls

66 lines (52 loc) · 2.16 KB
page_title morpheus_scale_threshold Resource - terraform-provider-morpheus
subcategory
description Provides a Morpheus scale threshold resource.

morpheus_scale_threshold

Provides a Morpheus scale threshold resource.

Example Usage

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
}

Schema

Required

  • auto_downscale (Boolean) Whether to scale down the number of instances
  • auto_upscale (Boolean) Whether to scale up the number of instances
  • max_count (Number) The maximum number of instances to scale up to
  • min_count (Number) The minimum number of instances to scale down to
  • name (String) The name of the scale threshold

Optional

  • enable_cpu_threshold (Boolean) Whether scaling operations based upon cpu usage is enabled or not
  • enable_disk_threshold (Boolean) Whether scaling operations based upon disk usage is enabled or not
  • enable_memory_threshold (Boolean) Whether scaling operations based upon memory usage is enabled or not
  • max_cpu_percentage (Number) The maximum memory percentage for scaling
  • max_disk_percentage (Number) The maximum disk percentage for scaling
  • max_memory_percentage (Number) The maximum memory percentage for scaling
  • min_cpu_percentage (Number) The minimum cpu percentage for scaling
  • min_disk_percentage (Number) The minimum disk percentage for scaling
  • min_memory_percentage (Number) The minimum memory percentage for scaling

Read-Only

  • id (String) The ID of the scale threshold

Import

Import is supported using the following syntax:

terraform import morpheus_scale_threshold.tf_example_scale_threshold 1