Questions tagged [aws-auto-scaling]

378 questions
0
votes
1 answer

How to add swap memory in auto scaling group of ec2 instances

We are configuring an auto-scaling-group. We need that for each spawned instance a swap memory should get allocated and it should be deleted once the instance auto-terminates due to scale in property of ASG. Please help to achieve that
Nitin G
  • 714
  • 7
  • 31
0
votes
1 answer

Is there a known method to decide auto scaling threshold value?

Is there a known method / keyword/ topic to solve how to decide auto scale threshold value? Take K8s HPA for example below, I only know I can install some monitoring tools then check memory usage showing on the graph by my eyes to decide a proper…
0
votes
3 answers

AWS autoscale group scale in event

I am using autoscale group for adding and removing additional instances for my application. I am using CPU Utilization as my scaling parameter and wondering what happens when an instance is running a program and the CPU Utilization comes below 65%…
Sunil Kumar
  • 117
  • 1
  • 2
  • 10
0
votes
1 answer

ECS Service Auto Scaling task termination lifecycle

I wanted to know if there is any AWS documentation that says how aws ecs service pick which task to terminate when an scaling in activity is place in the service. I have only found lifecycle for Auto Scaling Group but no for Auto Scaling…
0
votes
1 answer

Unable to select the Linux 2 AMI on AWS in launch configuration

I am unable to filter the "Amazon Linux 2" AMI while creating the launch configuration under the AMI drop down menu. I can see My AMI, Marketplace in the drop down. Where am I going wrong?
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
0
votes
1 answer

How to check an ELB is associated with any autoscaling group using Boto3

How can I check whether an AWS Elastic Load Balancer, Application Load Balancer or Network Load Balancer is associated with any Auto-Scaling group by passing the Load Balancer name or Load Balancer ARN using Boto3?
Tes M
  • 51
  • 7
0
votes
0 answers

Enable/Disable AWS Autoscaling policies

We have an Autoscaling policy set on an ASG and we need to enable or disable already existing scaling policy, how hard it would be, you just pass Autoscaling Group Name , policy name and Enabled (OR disabled) and the the job done. but what we are…
0
votes
1 answer

AWS - EC2 Auto Scaling Health Check in relation to Cool Down

I have an Amazon EC2 Auto Scaling group, health check is 5 minutes to mark the instance healthy and default cooldown is 4 minutes. I have a scaling policy that will check if the CPU usage is at 70% for n datapoints for 1 min and add n of…
mr1110
  • 45
  • 1
  • 5
0
votes
2 answers

Updates on a Node.JS application with AWS Auto-Scaling

I'm looking for recommandations about the best way to deploy updated versions of a Node.JS application when using multiple instances spawned by auto-scaling. My code is hosted on GitHub, usual deployment was made using GitHub Actions, pushing the…
0
votes
1 answer

AutoScaling ec2 instance with cloudformation

I am trying to autoScale this ec2 instance please guide me how to do it. Any template that might be helpful so that I can get started with the autoscaling. I am attaching only ec2 instance template which I want to…
0
votes
1 answer

Auto Scaling Group AWS

We are trying to limit our consumption of AWS resources. We could stop and start our EC2 instances at night and start them in the morning using a lambda function. The function works very well for all EC2 except those in an automatic scaling group.…
hajji_0081
  • 183
  • 1
  • 3
  • 11
0
votes
0 answers

Autoscalling with memory utilization with cloudwatch agent

im trying to do autoscalling with memory utilization. i have created a subnet where auto assign public ip is disabled but route to IGW is attached. I ran below script but cloudwatch agent is not downloaded on the server. Fn::Sub': > …
0
votes
2 answers

Production level Auto-scaling in AWS

I have completely understood the concept of Auto-Scaling in AWS. My only question is, what AMI will the launch configuration use while in production environment? According to my understanding Image of existing instance should be used. Lets say I…
0
votes
1 answer

How to get the ECS instance id tp specify in the cloud formation template?

I am building a cloud formation template(YML format) for my ECS service and stuck in load-balancer target group, it was not able to attach to my ECS instance and trying to add Targets by referring this official AWS docs…
user12056260
0
votes
1 answer

Ubuntu CloudFormation AutoScale

I have a problem with Aws cfn on Ubuntu. My template is below. I tried many things, and still, I couldn't solve. I tried cfn on a single ec2 instance and it 's working. Thanks for your help. When I logged in Instances, I have errors as…