AutoScaling: Validate use of Cooldown #32667
Labels
@aws-cdk/aws-autoscaling
Related to Amazon EC2 Auto Scaling
feature-request
A feature should be added or improved.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p2
Describe the feature
Cooldown
only applies to simple scaling policy.https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-scalingpolicy.html#cfn-autoscaling-scalingpolicy-cooldown
Please consider enhancing CDK to trap for the following configuration when executed with the
--ci
switch.To inform users that the cooldown will not have any effect.
asg.ScaleOnCpuUtilization('ALowCpuLoad', {
cooldown = cdk.Duration.minutes(666), // Has no effect when the policyType is
TargetTrackingScaling
estimatedInstanceWarmup = cdk.Duration.minutes(10),
targetUtilizationPercent: 45
});
Use Case
I was mislead by the CDK intrinsic documentation.
Cooldown: Period after a scaling completes before another scaling activity can start.
Default: The default cooldown configured on the AutoScalingGroup.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.165.0
Environment details (OS name and version, etc.)
Windows, C#, Constructs 10.4.2
The text was updated successfully, but these errors were encountered: