How to use aws autoscaling to scale based on a single instance of a autoscaling group?

Viewed 1239

Is there a way to decide on the scaling activity of an autoscaling group based on metrics collected for a single instance among the multiple instances of an autoscaling group?

I'm tried to scale up based on alarm set for an instance which is one among the multiple instances of an autoscaling group but as I try to configure the autscaling under the cloudwatch alarm for the instance, autoscaling group doesn't show up.

As you can see in the below image Autoscaling group is not listed.

Autoscaling group is unlisted

2 Answers

John's answer is right with the recommendations and possible solutions for your problem.

Due to reputation restrictions, I cannot comment to John answer to add details.

Is there a way to decide on the scaling activity of an autoscaling group based on metrics collected for a single instance among the multiple instances of an autoscaling group?

The scenario where you will scale in/out a single instance among the multiple instance may be a sign that you need to separate the service(s) running in that instance to a separate cluster and by that you can create a different scaling policy for the autoscaling group of new cluster.

However, is the reason you want to scale out/in that specific instance is to provide more resources for specific services running on that instance? If yes, you can autoscale up/down your service and then let the scaling policy of the autoscaling group of the cluster the service belongs decide if there's a need to scale in/out the cluster. Otherwise, John is right.

Related