You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two different kinds of scaling. The AutoScalingGroup (ASG) is used to scale the cluster, Application AutoScaling is used to scale an ECS service.
I've a similar scaling policy defined but I see that it scales the Autoscaling group abut doesn't scale the tasks in the ECS service.
"MyAutoScaleUpPolicy" : { "Type" : "AWS::AutoScaling::ScalingPolicy", "Properties" : { "AdjustmentType" : "ChangeInCapacity", "AutoScalingGroupName" : { "Ref" : "MyAutoScalingGroup" }, "Cooldown" : "100", "ScalingAdjustment" : "1" } },
"MyAsCPUAlarmHigh": { "Type": "AWS::CloudWatch::Alarm", "Properties": { "EvaluationPeriods": "2", "Statistic": "Average", "Threshold": "75", "AlarmDescription": "Alarm if CPU>=75% or metric disappears indicating instance is down", "Period": "180", "AlarmActions": [ { "Ref": "MyAutoScaleUpPolicy" } ], "Namespace": "AWS/ECS", "Dimensions": [ { "Name": "ClusterName", "Value": { "Ref": "MyCluster" } } ], "ComparisonOperator": "GreaterThanOrEqualToThreshold", "MetricName": "CPUUtilization" } },
Any advice?
The text was updated successfully, but these errors were encountered: