Memory utilization for auto-scaling groups --AWS

0 votes

While i was setting up AWS autoscaling group, and scaling policy i ran into this problem.

I wanted to use memory as a parameter, so i installed CLoudwatch's script for memory monitoring from below link.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html

When i use it for simple instance it works fine, but when i do it for auto-scaling with below command as given  in above doc i am getting an error.

Command

./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --auto-scaling=only

Error:

WARNING: The Auto Scaling metrics will not be reported this time.

Any help is appreciated.

Aug 6, 2018 in AWS by datageek
• 2,540 points
1,808 views

1 answer to this question.

0 votes

This is a working solution if your instance belongs to Autoscaling group.

rm -rf /var/tmp/aws-mon/

Then run,

./mon-put-instance-data.pl --mem-util --auto-scaling=only

When the monitoring script runs it caches the instance_id under /var/tmp/aws-mon.
One of the filters it uses when getting the auto scaling group name is the instance id. The TTL on this is 6 hours, so if your AMI has this cache, the query will use the wrong instance id for up to 6 hours after the instance is created which results in it failing to retrieve the auto scaling group name.

REF: https://forums.aws.amazon.com/thread.jspa?threadID=117783

answered Aug 8, 2018 by Priyaj
• 58,020 points

Related Questions In AWS

0 votes
1 answer

How to create or update tags for an Auto Scaling group in AWS?

Hi@akhtar, You can create or update tags for the specified ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,988 views
0 votes
1 answer

How do I disable detailed monitoring for instances in an auto scaling group in a CloudFormation template?

The property you want is InstanceMonitoring, not ...READ MORE

answered Aug 31, 2018 in AWS by Archana
• 4,170 points

edited Jun 16, 2023 by Khan Sarfaraz 1,235 views
0 votes
1 answer
0 votes
1 answer

How to attach an instance to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more EC2 instances ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,893 views
0 votes
1 answer

How to attach a load balancer to an Auto Scaling group in AWS?

Hi@akhtar, You can attach one or more Classic Load ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
902 views
0 votes
1 answer

How to create an Auto Scaling group using a launch configuration in AWS?

Hi@akhtar, You can create an Auto Scaling group with ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
891 views
0 votes
1 answer

How to delete an Auto Scaling group in AWS?

You can delete the specified Auto Scaling group. ...READ MORE

answered Nov 26, 2020 in AWS by MD
• 95,460 points
1,170 views
+1 vote
1 answer

Memory Utilization for auto scaling group AWS

Here is link to AWS support with same ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 58,020 points
3,259 views
0 votes
1 answer

Target groups in AWS for Network Load Balancers

Ypu can change the port definition in ...READ MORE

answered Nov 13, 2018 in AWS by Priyaj
• 58,020 points
3,066 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP