CFL_Jeff
CFL_Jeff

Reputation: 2719

Why is my EC2 Auto Scaling Group growing?

I noticed that the name of one of my EC2 instances (control-panel-0) is duplicated multiple times in the list of running instances (see screenshot).

Running Instances

I understand that this instance is part of an Auto Scaling Group and is spawning new instances, most likely due to the CPU or file system usage exceeding some threshold.

My question is: How can I tell what resource shortage triggered the duplication? Was it CPU usage? File system usage? How can I tell?

Upvotes: 0

Views: 338

Answers (2)

CFL_Jeff
CFL_Jeff

Reputation: 2719

  1. In the EC2 section, navigate to the Auto Scaling Groups area.
  2. Select the Auto Scaling Group you want to investigate and select the Activity History tab.
  3. Expand any of the "Launching new EC2 instance" activities and AWS will show you a Description and a Cause.

enter image description here

Upvotes: 0

ThomasVdBerge
ThomasVdBerge

Reputation: 8140

Your instances are not duplicated, their name tag is.

Instance names need not be unique. Instance IDs are unique and is what AWS uses to identify certain resources.

In this case, you are either using an autoscaling group, which creates new instances when scaling needs to happen, or somebody manually named all these instances the same.

You can see in the Auto Scaling Groups tab logs (if there is any) why new instances were added.

Upvotes: 3

Related Questions