Class NetworkUtilizationScalingProps
Properties for enabling scaling based on network utilization.
Inheritance
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NetworkUtilizationScalingProps : Object, INetworkUtilizationScalingProps, IBaseTargetTrackingProps
Syntax (vb)
Public Class NetworkUtilizationScalingProps
Inherits Object
Implements INetworkUtilizationScalingProps, IBaseTargetTrackingProps
Remarks
ExampleMetadata: infused
Examples
AutoScalingGroup autoScalingGroup;
autoScalingGroup.ScaleOnIncomingBytes("LimitIngressPerInstance", new NetworkUtilizationScalingProps {
TargetBytesPerSecond = 10 * 1024 * 1024
});
autoScalingGroup.ScaleOnOutgoingBytes("LimitEgressPerInstance", new NetworkUtilizationScalingProps {
TargetBytesPerSecond = 10 * 1024 * 1024
});
Synopsis
Constructors
NetworkUtilizationScalingProps() |
Properties
Cooldown | Period after a scaling completes before another scaling activity can start. |
DisableScaleIn | Indicates whether scale in by the target tracking policy is disabled. |
EstimatedInstanceWarmup | Estimated time until a newly launched instance can send metrics to CloudWatch. |
TargetBytesPerSecond | Target average bytes/seconds on each instance. |
Constructors
NetworkUtilizationScalingProps()
public NetworkUtilizationScalingProps()
Properties
Cooldown
Period after a scaling completes before another scaling activity can start.
public Duration Cooldown { get; set; }
Property Value
Remarks
Default: - The default cooldown configured on the AutoScalingGroup.
DisableScaleIn
Indicates whether scale in by the target tracking policy is disabled.
public Nullable<bool> DisableScaleIn { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.
Default: false
EstimatedInstanceWarmup
Estimated time until a newly launched instance can send metrics to CloudWatch.
public Duration EstimatedInstanceWarmup { get; set; }
Property Value
Remarks
Default: - Same as the cooldown.
TargetBytesPerSecond
Target average bytes/seconds on each instance.
public double TargetBytesPerSecond { get; set; }
Property Value
System.Double