Questions tagged [aws-auto-scaling]
378 questions
19
votes
3 answers
How to make sure Kubernetes autoscaler not deleting the nodes which runs specific pod
I am running a Kubernetes cluster(AWS EKS one) with Autoscaler pod So that Cluster will autoscale according to the resource request within the cluster.
Also, cluster will shrink no of nodes when the load is reduced. As I observed, Autosclaer can…

Asanka V
- 624
- 1
- 5
- 17
14
votes
1 answer
Why do I need to enable instance scale-in protection in my Auto Scaling Group when enabling a capacity provider within a cluster?
I am making an AWS ECS cluster using EC2 and trying to use capacity providers. I don't really understand why do I need to enable instance scale-in protection inside my AWS Auto Scaling group.
Isn't the point of Auto Scaling the termination of…

s3nti3ntB
- 391
- 4
- 11
14
votes
1 answer
What's the difference between AWS ASG Cooldown Period and health check grace period?
AWS Autoscaling has 2 concepts:
Cooldown period: From AWS documentation: the cooldown period helps to ensure that your Auto Scaling group doesn't launch or terminate additional instances before the previous scaling activity takes effect. You can…

krishna_mee2004
- 6,556
- 2
- 35
- 45
9
votes
1 answer
Differences between EC2 Auto Scaling Group (EC2 ASG) and Elastic Container Service (ECS)
From what I've read so far:
EC2 ASG is a simple solution to scale your server with more copies of it with a load balancer in front of the EC2 instance pool
ECS is more like Kubernetes, which is used when you need to deploy multiple services in…

Dang Duy Nam
- 197
- 1
- 9
5
votes
2 answers
EKS Cluster Autoscaler with spot had degraded node group
Challenge
Scale up of spot node group fail with AsgInstanceLaunchFailures, as it "Could not launch Spot Instances. UnfulfillableCapacity - Unable to fulfill capacity due to your request configuration. Please adjust your request and try again.…
user18275887
5
votes
1 answer
create autoscaling group from launch configuration error: The t2.micro instance type does not support specifying CpuOptions
I'm trying to create an autoscaling group from a launch configuration which was created from an ec2 AMI. However, in the second step, 'Configure Settings', I get an error message when I click 'Next'. I tried reviewing my first step but could not…

minh ly
- 143
- 2
- 12
5
votes
1 answer
Fargate scaling up works consistently but scaling down is not working consistently
We have a simple example of target tracking autoscaling configured for an ecs containerized application based on the CPU and memory. We have 4 alarms autoconfigured by the code below (2 CPU - 1 scale up, 1 scaledown, and 2 memory, 1 scale up and 1…

bstack
- 2,466
- 3
- 25
- 38
5
votes
1 answer
AWS ECS cluster auto-scaling vs service auto-scaling
this is my first time using amazon ecs service.
I have searched online for awhile to understand auto-scaling with ecs services.
I found there are two options to auto-scale my application. But, There are some I don't understand.
First is Service auto…

Zoedia
- 295
- 2
- 13
4
votes
1 answer
Enable AWS RDS Auto Scaling via Cloudformation
I have RDS instances running in my AWS account created via a Cloudformation template. Recently there was a storage-full occurrence and as immediate remediation, I modified storage size from default 20 GB to 50 GB from the console.
Now I am…

Mahbub Rahman
- 1,295
- 1
- 24
- 44
4
votes
2 answers
Does setting "desired size: 0" prevent cluster-autoscaler from scaling up a managed node group?
I have an aws managed node group that is acting unexpectedly when I set both desired size and minimum size to 0. I would expect that the managed node group would not have any nodes to start with, but that once I attempt to schedule a pod using a…

EMC
- 1,560
- 2
- 17
- 31
4
votes
1 answer
ECS Fargate autoscaling more rapidly?
I'm load testing my auto scaling AWS ECS Fargate stack which comprises of:
Application Load Balancer (ALB) with a target group pointing to ECS,
ECS Cluster, Service, Task, ApplicationAutoScaling::ScalableTarget, and…

Pierre
- 2,335
- 22
- 40
4
votes
2 answers
Celery: AWS ECS Autoscale scale-in Event (how to not destroy long running tasks?)
I'm running Python Celery (a distributed task queue library) workers in an AWS ECS cluster (1 Celery worker running per EC2 instance), but the tasks are long running and NOT idempotent. This means that when an autoscaling scale-in event happens,…

Dominic Napoleon
- 343
- 3
- 7
4
votes
1 answer
AWS Sagemaker inference endpoint doesn't scale in with autoscaling
I have an AWS Sagemaker inference endpoint with autoscaling enabled with SageMakerVariantInvocationsPerInstance target metric. When I send a lot of requests to the endpoint the number of instances correctly scales out to the maximum instance count.…

hovnatan
- 1,331
- 10
- 23
3
votes
1 answer
Autoscaling group instances not register on ALB
I have the following Cloudformation template, but the instances are only up for a few seconds before resulting in terminate status.
I thought it had something to do with the 'grace' period, 'timeout' periods, but still haven't been able to figure it…

Markus
- 369
- 4
- 16
3
votes
1 answer
EC2 instances must have a public IP assigned or they fail target group health checks?
I created two different versions of the auto-scaling group template.
The first template doesn't auto-assign a public IP to the EC2 instances on creation, so there is only a private IP assigned to the EC2 instance when created. The target group…

Alex F
- 2,086
- 4
- 29
- 67