aws-cdk-lib.aws_opsworks.CfnLayer.AutoScalingThresholdsProperty

interface AutoScalingThresholdsProperty

LanguageType name
.NETAmazon.CDK.AWS.OpsWorks.CfnLayer.AutoScalingThresholdsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsopsworks#CfnLayer_AutoScalingThresholdsProperty
Javasoftware.amazon.awscdk.services.opsworks.CfnLayer.AutoScalingThresholdsProperty
Pythonaws_cdk.aws_opsworks.CfnLayer.AutoScalingThresholdsProperty
TypeScript aws-cdk-lib » aws_opsworks » CfnLayer » AutoScalingThresholdsProperty

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const autoScalingThresholdsProperty: opsworks.CfnLayer.AutoScalingThresholdsProperty = {
  cpuThreshold: 123,
  ignoreMetricsTime: 123,
  instanceCount: 123,
  loadThreshold: 123,
  memoryThreshold: 123,
  thresholdsWaitTime: 123,
};

Properties

NameTypeDescription
cpuThreshold?numberThe CPU utilization threshold, as a percent of the available CPU.
ignoreMetricsTime?numberThe amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.
instanceCount?numberThe number of instances to add or remove when the load exceeds a threshold.
loadThreshold?numberThe load threshold.
memoryThreshold?numberThe memory utilization threshold, as a percent of the available memory.
thresholdsWaitTime?numberThe amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

cpuThreshold?

Type: number (optional)

The CPU utilization threshold, as a percent of the available CPU.

A value of -1 disables the threshold.


ignoreMetricsTime?

Type: number (optional)

The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.

For example, AWS 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 AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.


instanceCount?

Type: number (optional)

The number of instances to add or remove when the load exceeds a threshold.


loadThreshold?

Type: number (optional)

The load threshold.

A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .


memoryThreshold?

Type: number (optional)

The memory utilization threshold, as a percent of the available memory.

A value of -1 disables the threshold.


thresholdsWaitTime?

Type: number (optional)

The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.