Auto Scaling
用户指南
AWS 服务或AWS文档中描述的功能,可能因地区/位置而异。点 击 Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Auto Scaling 问题排查

Amazon Web Services 提供特定的描述性错误消息来帮助您排查关于 Auto Scaling 的问题。可以从 Auto Scaling 活动的描述中发现错误消息。

检索错误消息

要从 Auto Scaling 活动的描述中检索错误消息,请使用 describe-scaling-activities 命令,如下所示:

Copy
aws autoscaling describe-scaling-activities --auto-scaling-group-name my-asg

在下面的示例响应中,StatusCode 包含活动的当前状态,StatusMessage 包含错误消息:

{
    "Activities": [
        {
            "Description": "Launching a new EC2 instance: i-4ba0837f",
            "AutoScalingGroupName": "my-asg",
            "ActivityId": "f9f2d65b-f1f2-43e7-b46d-d86756459699",
            "Details": "{"Availability Zone":"us-west-2c"}",
            "StartTime": "2013-08-19T20:53:29.930Z",
            "Progress": 100,
            "EndTime": "2013-08-19T20:54:02Z",
            "Cause": "At 2013-08-19T20:53:25Z a user request created an AutoScalingGroup...",
            "StatusCode": "Failed",
            "StatusMessage": "The image id 'ami-4edb0327' does not exist. Launching EC2 instance failed."
        }
   ]
}

下表列出了错误消息的类型,并提供问题排查资源的链接,您在排查 Auto Scaling 问题时可以使用这些资源。

本页内容: