[英]Amazon EC2 autoscaling instances always show status as “pending”
I created a launch configuration using the Amazon ECS-oriented AMI. 我使用面向Amazon ECS的AMI创建了启动配置。 All of the instances are connected to a VPC but also have a public non-EIP address. 所有实例均连接到VPC,但也具有公用的非EIP地址。
When I create an autoscaling group, I can look in the Instances page and see the instances pass all health checks. 创建自动伸缩组时,可以在“实例”页面中查看实例是否通过所有运行状况检查。
Furthermore, the ELB I created picks the new instances up and begins to serve traffic to them. 此外,我创建的ELB会拾取新实例并开始向它们提供流量。
However, the autoscaler always shows my instances as "pending" and eventually destroys them. 但是,自动缩放器始终将我的实例显示为“挂起”,并最终销毁它们。
What is going on? 到底是怎么回事?
Autoscaling show instances pending: 自动缩放显示实例待处理:
Thanks for any help! 谢谢你的帮助!
Here's the output from the launch log, with a very unhelpful message: 这是启动日志的输出,其中包含一条非常无用的消息:
Check your ASG Activity History tab from the Auto Scaling Group module, checking in particular for the transition from Scale Out
to Pending
, to Terminated
. 在Auto Scaling Group模块中检查“ ASG活动历史记录”选项卡,尤其检查从Scale Out
到Pending
到Terminated
的过渡。
For each of those, check the 'more' arrow that will display the following fields: 对于每个选项,请选中“更多”箭头,其中将显示以下字段:
Launching a new EC2 instance: i-0aaaaa06b45ce05
说明: Launching a new EC2 instance: i-0aaaaa06b45ce05
At 2016-06-16T17:54:25Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 2 to 4
原因: At 2016-06-16T17:54:25Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 2 to 4
The activity history and the related lifecyle events description and cause will help you narrow down the problem quickly. 活动历史记录和相关的生命周期事件描述和原因将帮助您快速缩小问题范围。
The cause for the Terminated/Cancelled event will be of particular interest. 终止/取消事件的原因将特别令人关注。 Here is an example of a Terminated
event: 这是一个Terminated
事件的示例:
Terminating EC2 instance: i-0aaaaaad47162b8f84
说明: Terminating EC2 instance: i-0aaaaaad47162b8f84
At 2016-05-20T08:12:42Z an instance was taken out of service in response to a EC2 instance status checks failure.
原因: At 2016-05-20T08:12:42Z an instance was taken out of service in response to a EC2 instance status checks failure.
EDIT: 编辑:
Based on the log history provided, the instance is failing to launch because of a Only EC2-Classic instances may be linked.
根据提供的日志历史记录,由于Only EC2-Classic instances may be linked.
,因此实例无法启动Only EC2-Classic instances may be linked.
error. 错误。 There is configuration problem in the Launch Configuration. 启动配置中存在配置问题。
Check your Launch Configuration, and make sure that Link to VPC option is unchecked in Advanced Details. 检查您的启动配置,并确保在“高级详细信息”中未选中“ 链接到VPC”选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.