interface NetworkUtilizationScalingProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AutoScaling.NetworkUtilizationScalingProps |
![]() | software.amazon.awscdk.services.autoscaling.NetworkUtilizationScalingProps |
![]() | aws_cdk.aws_autoscaling.NetworkUtilizationScalingProps |
![]() | @aws-cdk/aws-autoscaling » NetworkUtilizationScalingProps |
Properties for enabling scaling based on network utilization.
Example
declare const autoScalingGroup: autoscaling.AutoScalingGroup;
autoScalingGroup.scaleOnIncomingBytes('LimitIngressPerInstance', {
targetBytesPerSecond: 10 * 1024 * 1024 // 10 MB/s
});
autoScalingGroup.scaleOnOutgoingBytes('LimitEgressPerInstance', {
targetBytesPerSecond: 10 * 1024 * 1024 // 10 MB/s
});
Properties
Name | Type | Description |
---|---|---|
target | number | Target average bytes/seconds on each instance. |
cooldown? | Duration | Period after a scaling completes before another scaling activity can start. |
disable | boolean | Indicates whether scale in by the target tracking policy is disabled. |
estimated | Duration | Estimated time until a newly launched instance can send metrics to CloudWatch. |
targetBytesPerSecond
Type:
number
Target average bytes/seconds on each instance.
cooldown?
Type:
Duration
(optional, default: The default cooldown configured on the AutoScalingGroup.)
Period after a scaling completes before another scaling activity can start.
disableScaleIn?
Type:
boolean
(optional, default: false)
Indicates whether scale in by the target tracking policy is disabled.
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.
estimatedInstanceWarmup?
Type:
Duration
(optional, default: Same as the cooldown.)
Estimated time until a newly launched instance can send metrics to CloudWatch.