Questions tagged [aws-auto-scaling]
378 questions
2
votes
0 answers
AWS AutoScaling group managed by ECS cluster capacity provider cannot scale in due to protection
I have an ECS cluster backed by EC2 machines in an autoscaling group.
The cluster uses capacity provider described in CloudFormation with the following code:
CapacityProvider:
Type: AWS::ECS::CapacityProvider
Condition:…

Werolik
- 923
- 1
- 9
- 23
2
votes
1 answer
AWS ECS service on fargate does not scale in properly
2 out of my 26 ECS services in us-west-2 do not scale in to 1 task as desired.
The service configuration is like:
Min tasks: 1
Max tasks: 3
Scale out criteria: ECSServiceAverageCPUUtilization > 40% or ECSServiceAverageMemoryUtilization > 60%
Scale…

blacktulip71
- 31
- 4
2
votes
1 answer
How to enable public ip addresses when using autoscaling group launch templates using AWS CDK?
I'm using AWS CDK and am trying to enable the associatePublicIpAddress property for an AutoScalingGroup that's using a launch template.
I'm hitting this error…

BryceLarkin
- 476
- 1
- 6
- 16
2
votes
3 answers
AWS ECS fargate auto-scaling - how does it scale-in selects which tasks to terminate?
I am running java process inside ecs fargate containers and have set-up auto scaling to scale-out when memory utilization is above 60% and scale-in accordingly. This setup is working fine but i am not able to figure out the criteria based upon which…

user10916892
- 825
- 12
- 33
2
votes
1 answer
Can't set AWS ECS service auto scaling in Console
I am experimenting with the AWS CLI for application-autoscaling, and wanted to view how making changes in the CLI were reflected in the AWS console.
I set register-scalable-target with new a new minimum and maximum. When I updated the same service…

ScottyB
- 2,167
- 1
- 30
- 46
2
votes
1 answer
AWS Auto Scaling Group does not detect instance is unhealthy from ELB
I’m trying to get an AWS Auto Scaling Group to replace ‘unhealthy’ instances, but I can’t get it to work.
From the console, I’ve created a Launch Configuration and, from there, an Auto Scaling Group with an Application Load Balancer. I've kept all…

ErikHeemskerk
- 1,623
- 14
- 30
2
votes
1 answer
Can I make a scheduled auto-scaling policy in AWS to have 1 EC2 instance during specific hours?
I need to practice AWS for my job but I would like to reduce my personal costs as much as possible. I will only be working on my personal EC2 instance from noon to 11:00pm generally for the most part. Can I have an autoscaling group that will bring…

Hopelessdecoy
- 119
- 1
- 2
- 10
2
votes
1 answer
Task or Container scale-in protection in AWS ECS Fargate
I have an ECS Fargate service which uses CloudWatch alarms to scale-in/scale-out using service auto-scaling. The task containers have long processing times (upto 40 minutes) and I don't want a running container to get killed when a scale-in happens.…

Dhruv Pargai
- 121
- 5
2
votes
2 answers
cluster-autoscaler deployment fails with "1 Too many pods, 3 node(s) didn't match Pod's node affinity/selector"
I have created a k8s cluster with kops (1.21.4) on AWS and as per the docs on autoscaler. I have done the required changes to my cluster but when the cluster starts, the cluster-autoscaler pod is unable to schedule on any node. When I describe the…

Divick
- 1,213
- 1
- 20
- 44
2
votes
0 answers
EKS unable to schedule pod on node because availability zone of node and persistent volume (EBS) mismatch
I have a managed AWS eks cluster and the ec2 instances (k8s nodes) can run in any availability zones (ap-northeast-1a, 1b, 1c, 1d in my case). I have a minio pod running on the cluster and using ebs volume(created automatically) in ap-northeast-1d…

Akshay Sood
- 6,366
- 10
- 36
- 59
2
votes
1 answer
Predictive Auto Scaling for AWS ECS Services
Motivation
I currently have a number of services deployed to ECS with EC2 Launch Type, but I can change that if needed.
I would like to use the EC2 Predictive Scaling feature since traffic is very periodic (peak in day, slack at night).
ECS Service…

DV82XL
- 5,350
- 5
- 30
- 59
2
votes
0 answers
AWS ECS Fargate autoscaling (scale-in) not working
ECS service is configured to have desired count = 1 as part of initial setup.
Auto-scaling with policy type = "TargetTrackingScaling" and PredefinedMetricType = "ECSServiceAverageMemoryUtilization" is set with target value 75%,
i.e. it should auto…

user10916892
- 825
- 12
- 33
2
votes
1 answer
Attach existing EBS volumes to launch configuration in Terraform
I have 3 existing EBS volumes that I am trying to attach to instances created with Autoscaling groups. Below is Terraform code on how the EBS volumes are defined:
EBS Volumes
resource "aws_ebs_volume" "volumes" {
count = "${(var.enable…

Dave Michaels
- 847
- 1
- 19
- 51
2
votes
0 answers
Cluster scaling group instantly desires 2 instances without any task running on the specified capacity provider
I have ECS cluster, which already uses fargate as capacity provider. With fargate everything works fine. However, now I want to add an ASG as an additional capacity provider. As instances I want to use p2.xlarge and my tasks run very infrequent,…

Lau
- 1,353
- 7
- 26
2
votes
0 answers
Cloudformation ECS Fargate autoscaling target tracking: 1 custom alarm in 1 minute: Failed to execute action
I can setup the following through the console and I have it as a cloudformation template as well:
a scalable target associated to my ALB,
a CPU target tracking scaling policy,
a ALBRequestCountPerTarget target tracking policy.
This all work really…

Pierre
- 2,335
- 22
- 40