Questions tagged [aws-auto-scaling]

378 questions
3
votes
1 answer

ECS cluster scale in / out tasks based on CPU/memory

I have a problem statement. Can anyone answer it for me. You have a Microservice running in your ECS cluster. How would you manage below tasks. (Use terraform)    a. You want to scale in/out the tasks based on CPU/Memory utilisation    b. You…
3
votes
1 answer

AWS CodeDeploy overwrite existing files when deploying via AutoScaling

I have an Autoscaling Group that gets scaled/deployed on using CodeDeploy, I had created a working instance and got it all up and running and took an image of it for a launch template, this instance was attached to the Autoscaling group and when I…
3
votes
0 answers

AWS: Is there a way to use an absolute instance weighting capacity for EC2 AutoScaling?

In a single ECS Cluster, is there a way to use a max number of instances (of a concrete instance type) and if the limit es exceeded, start using another instance type instead? I have 20 reserved instances (for a concrete instance type and quite…
3
votes
2 answers

Can an on-premises load balancer be used to connect to AWS EC2 Autoscaling group?

I have an on-premises load balancer that I wish to use to distribute traffic on EC2s in an Autoscaling group(ASG). When AWS's Elastic Load Balancer(ELB) registers an ASG as a target, during a scale-out,new instances are automatically registered to…
3
votes
2 answers

How Target capacity % is calculated in AWS ECS capacity provider

While creating capacity provider in AWS ECS. the value Target capacity % we are filling, after crossing this value our cluster scale-in, but I am curious how this value of the current cluster is calculating and if I am want to check what is the…
Deepesh Uniyal
  • 923
  • 3
  • 20
  • 44
3
votes
1 answer

aws auto scaling remove unhealthy instance before it scales up rendering the application unusable

I am testing out aws auto scaling and other corresponding services. I have 1 instance registered to target group minimum/desired instances on auto scaling group as 1. Scale up when CPU utilisation above 50% During load testing, due to increase in…
3
votes
0 answers

Task nodes not scaling down with AWS EMR managed scaling

I have setup an EMR cluster with one step of Spark streaming and I have configured EMR managed scaling. I submit adhoc spark jobs also on master with spark-submit. The cluster scales up when jobs are submitted but it doesn't scale down after the…
ashu82492
  • 66
  • 6
3
votes
2 answers

AWS CloudFormation with Load Balancer and Auto Scaling Group is just keeping loading the website

I am deploying an AWS CloudFormation Template. I am deploying a Load Balancer pointing to an Auto Scaling Group. I could deploy my template successfully. But when I access the website using Load Balancer's DNS, it just keeps loading, loading and…
3
votes
1 answer

Can you mount an AWS Multi-Attach EBS volume to an auto-scaling group in Terraform?

I have created an EBS volume that I can attach to EC2 instances using Terraform, but I cannot work out how to get the EBS to connect to an EC2 created by an autoscaling group. Code that works: resource "aws_volume_attachment" "ebs_name" { …
3
votes
2 answers

My Cloudformation YAML for autoscaling group keeps creating EC2 instances in default VPC even after I specify a custom VPC

My Cloudformation YAML for autoscaling group keeps creating EC2 instances in default VPC even after I specify a custom VPC. Here's the snippets of code: TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: Port:…
2
votes
1 answer

Terraform wait until execution of user_data then make an image to autoscale?

I am making a scalable service using AWS EC2, AutoScale Groups, SQS and CloudWatch Alarm using Terraform with user_data to set things up. I am using a aws_launch_template and scaling using autoscale. It works, but for every new instances it runs…
2
votes
1 answer

Use latest launch template version in AWS Cloudformation

I am writing a cloudformation (cf) template to provision an auto-scaling group, I prepared the launch template ahead of time and want to use the latest version. I am getting the LaunchTemplateId as a parameter but I am not sure how to use the latest…
2
votes
1 answer

What is the best approach for having multiple instances in AWS running a custom Next.js app?

I am running a Next.js app using the custom server options and the AWS CodePipeline for CI/CD. My pipeline uses code build to build the app and AWS CodeDeploy to deploy to all instances within an autoscaling group. Configured with…
2
votes
1 answer

AWS eventbridge rule failed invocations - where can I see why it failed?

I created a rule in eventbridge to call ssm automation doc at the instance launch lifecycle in auto-scaling group but it's failing to call the ssm doc. where can i see the log for this or find out why it failed?
2
votes
0 answers

Kubernetes Statefulset problem with Cluster Autoscaler and Multi-AZ

I have a EKS cluster with cluster autoscaler setup, spanning across three availability zones. I have deployed a Redis Cluster using helm and it works fine. Basically it is a statefulset of 6 replicas with dynamic PVC. Currently, my EKS cluster has…
1
2
3
25 26