Amazon AWS Auto Scaling 组因每个目标指标的请求而失败

Amazon AWS Auto Scaling Group Fails with Requests per Target Metric

我配置了一个自动缩放组和一个将使用绑定到目标组指标(特别是 RequestCountPerTarget)的缩放策略的启动配置。

但是没有触发缩放事件。

Auto Scaling 组

CloudWatch 警报

自动警报触发操作

{
  "error": null,
  "actionState": "Succeeded",
  "notificationResource": "arn:aws:autoscaling:ap-southeast-1:0000:scalingPolicy:0000:autoScalingGroupName/WebScalingGroupV1:policyName/Scale API Requests",
  "stateUpdateTimestamp": 1519937155623,
  "publishedMessage": null
}

我完全删除了这个组和配置以重新创建它。

我在配置和伸缩组名中有空格;我遇到了同样的问题。

在与 AWS 支持工程师 Manu 交谈后,确定阻止自动缩放操作触发的根本原因是 MinimumDesired 实例的配置冲突被设置为零。

当当前容量(Desired)为零时,亚马逊自动缩放组将不会基于目标跟踪触发,显然也不会给出任何明确的指示通过错误日志发现故障。

参考 目标跟踪注意事项 https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html#target-tracking-considerations

A target tracking scaling policy does not scale your Auto Scaling group when its current capacity is 0, because target tracking scales proportionally to the current capacity.