Class: Aws::OpsWorks::Types::AutoScalingThresholds
- Inherits:
-
Struct
- Object
- Struct
- Aws::OpsWorks::Types::AutoScalingThresholds
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-opsworks/types.rb
Overview
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when OpsWorks Stacks starts or stops load-based instances.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#alarms ⇒ Array<String>
Custom CloudWatch auto scaling alarms, to be used as thresholds.
-
#cpu_threshold ⇒ Float
The CPU utilization threshold, as a percent of the available CPU.
-
#ignore_metrics_time ⇒ Integer
The amount of time (in minutes) after a scaling event occurs that OpsWorks Stacks should ignore metrics and suppress additional scaling events.
-
#instance_count ⇒ Integer
The number of instances to add or remove when the load exceeds a threshold.
-
#load_threshold ⇒ Float
The load threshold.
-
#memory_threshold ⇒ Float
The memory utilization threshold, as a percent of the available memory.
-
#thresholds_wait_time ⇒ Integer
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
Instance Attribute Details
#alarms ⇒ Array<String>
Custom CloudWatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.
<note markdown=“1”> To use custom alarms, you must update your service role to allow ‘cloudwatch:DescribeAlarms`. You can either have OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see [Allowing OpsWorks Stacks to Act on Your Behalf].
</note>
[1]: docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-servicerole.html
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#cpu_threshold ⇒ Float
The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#ignore_metrics_time ⇒ Integer
The amount of time (in minutes) after a scaling event occurs that OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, OpsWorks Stacks adds new instances following an upscaling event but the instances won’t start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. ‘IgnoreMetricsTime` allows you to direct OpsWorks Stacks to suppress scaling events long enough to get the new instances online.
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#instance_count ⇒ Integer
The number of instances to add or remove when the load exceeds a threshold.
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#load_threshold ⇒ Float
The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see [Load (computing)].
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#memory_threshold ⇒ Float
The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |
#thresholds_wait_time ⇒ Integer
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/aws-sdk-opsworks/types.rb', line 263 class AutoScalingThresholds < Struct.new( :instance_count, :thresholds_wait_time, :ignore_metrics_time, :cpu_threshold, :memory_threshold, :load_threshold, :alarms) SENSITIVE = [] include Aws::Structure end |