简体   繁体   English

Amazon EC2自动扩展实例始终显示为“待处理”状态

[英]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? 到底是怎么回事?

Instances: 实例: 这是实例页面

ELB: ELB: ELB页面

Autoscaling show instances pending: 自动缩放显示实例待处理: 自动缩放显示实例待处理

Thanks for any help! 谢谢你的帮助!

EDIT 编辑

Here's the output from the launch log, with a very unhelpful message: 这是启动日志的输出,其中包含一条非常无用的消息:

Lauch日志没有帮助

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 OutPendingTerminated的过渡。

For each of those, check the 'more' arrow that will display the following fields: 对于每个选项,请选中“更多”箭头,其中将显示以下字段:

  • Description: Launching a new EC2 instance: i-0aaaaa06b45ce05 说明: Launching a new EC2 instance: i-0aaaaa06b45ce05
  • Cause: 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事件的示例:

  • Description: Terminating EC2 instance: i-0aaaaaad47162b8f84 说明: Terminating EC2 instance: i-0aaaaaad47162b8f84
  • Cause: 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.

相关问题 具有弹性IP的Amazon EC2自动扩展实例 - Amazon EC2 autoscaling instances with elastic IPs 如何使用 AWS CLI 获取具有特定标签的 Amazon EC2 自动扩展组中的实例? - How to get the instances in the Amazon EC2 autoscaling group with specific tags using AWS CLI? 管理Amazon EC2实例 - Managing Amazon EC2 instances Amazon ECS自动扩展会启动和终止Amazon EC2服务器吗? - Will Amazon ECS autoscaling start and terminate Amazon EC2 servers? CloudFormation的状态为“ CREATE_COMPLETE”时,EC2实例是否可能处于“挂起”状态? - Is it possible for EC2 instances to be in a “pending” state when CloudFormation has a status of “CREATE_COMPLETE”? 来自 Amazon 中的自动扩展组的自终止 EC2 实例 - Self-terminating EC2 instance from autoscaling group in Amazon EC2 Amazon:在没有JRE的情况下设置自动缩放工具环境吗? - EC2 Amazon: Set up autoscaling tools environment without JRE? Amazon EC2 AutoScaling CPUUtilization Alarm-INSUFFICIENT DATA - Amazon EC2 AutoScaling CPUUtilization Alarm- INSUFFICIENT DATA 具有自动缩放属性的EC2实例上tomcat的Memcahed会话管理器 - Memcahed session manager for tomcat on EC2 instances with autoscaling property 已知数量的 Autoscaling EC2 实例上的静态私有 IP - Static private IPs on known numbers of Autoscaling EC2 instances
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM