Interface CfnLayerPropsMixin.IAutoScalingThresholdsProperty
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.OpsWorks
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnLayerPropsMixin.IAutoScalingThresholdsProperty
Syntax (vb)
Public Interface CfnLayerPropsMixin.IAutoScalingThresholdsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.OpsWorks;
var autoScalingThresholdsProperty = new AutoScalingThresholdsProperty {
CpuThreshold = 123,
IgnoreMetricsTime = 123,
InstanceCount = 123,
LoadThreshold = 123,
MemoryThreshold = 123,
ThresholdsWaitTime = 123
};
Synopsis
Properties
| CpuThreshold | The CPU utilization threshold, as a percent of the available CPU. |
| IgnoreMetricsTime | The amount of time (in minutes) after a scaling event occurs that OpsWorks Stacks should ignore metrics and suppress additional scaling events. |
| InstanceCount | The number of instances to add or remove when the load exceeds a threshold. |
| LoadThreshold | The load threshold. |
| MemoryThreshold | The memory utilization threshold, as a percent of the available memory. |
| ThresholdsWaitTime | The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. |
Properties
CpuThreshold
The CPU utilization threshold, as a percent of the available CPU.
double? CpuThreshold { get; }
Property Value
Remarks
A value of -1 disables the threshold.
IgnoreMetricsTime
The amount of time (in minutes) after a scaling event occurs that OpsWorks Stacks should ignore metrics and suppress additional scaling events.
double? IgnoreMetricsTime { get; }
Property Value
Remarks
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.
InstanceCount
The number of instances to add or remove when the load exceeds a threshold.
double? InstanceCount { get; }
Property Value
Remarks
LoadThreshold
The load threshold.
double? LoadThreshold { get; }
Property Value
Remarks
A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .
MemoryThreshold
The memory utilization threshold, as a percent of the available memory.
double? MemoryThreshold { get; }
Property Value
Remarks
ThresholdsWaitTime
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
double? ThresholdsWaitTime { get; }