user4848830
user4848830

Reputation: 819

ec2 instances getting removed from elastic beanstalk

EB dashboard:

Removed instance [i-0c6e4cba4392d1ace] from your environment.

And if I'm on the EC2 instance, I get these messages on console:

Broadcast message from root@ip-172-31-20-119
    (unknown) at 21:20 ...

The system is going down for power off NOW!
Connection to 54.186.171.133 closed by remote host.
Connection to 54.186.171.133 closed.

Any pointers on why this is happening and how can I debug this? Are there any logs which can I look after the instance has terminated?

Upvotes: 0

Views: 1550

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 269340

It is likely that the Auto Scaling group associated with your Elastic Beanstalk application decided to scale-in the number of instances.

You can go to Auto Scaling in the EC2 console, find the Auto Scaling group and look at the History tab to determine why it happened (eg due to low CPU load).

It might also be because the instance failed a Health Check, so Auto Scaling removed it.

Upvotes: 2

Related Questions