我有以下 Auto Scaling 策略,它应该在 CPU 预留超过 75% 时添加实例。我没有看到为此设置触发的任何警报
Policy type:
Simple scaling
Execute policy when:
ECS-CPUHighAlarm
breaches the alarm threshold: CPUReservation > 75 for 5 consecutive periods
of 60 seconds for the metric dimensions AutoScalingGroupName = ECS-
ECSAutoScalingGroup
Take the action:
Add 1 instances And then wait: 600 seconds before allowing another scaling
activity
下面是 CloudFormation 脚本。
CPUHighAlarm:
Type: 'AWS::CloudWatch::Alarm'
Properties:
EvaluationPeriods: 5
Statistic: Average
Threshold: 75
AlarmDescription: 'Alarm if CPU reservation is high.'
Period: 60
AlarmActions:
- !Ref 'CPUScalingUpPolicy'
Namespace: 'AWS/ECS'
Dimensions:
- Name: AutoScalingGroupName
Value: !Ref 'ECSAutoScalingGroup'
ComparisonOperator: GreaterThanThreshold
MetricName: CPUReservation
但根据我在下面给出的图表中观察到的情况,它并没有发生。 CPU 预留图
关于我缺少配置的任何想法?