Questions tagged [autoscaling]
The autoscaling tag has no usage guidance.
285
questions
35
votes
3
answers
32k
views
Static IP address for outgoing traffic from AWS autoscaling group
I'm going to have a number of EC2 instances in an Elastic Beanstalk autoscaling group in a default subnet in a VPC. The app on these EC2 instances needs to connect to a third party service who uses an ...
23
votes
9
answers
29k
views
How to get Autoscaling group Instances IP adresses
How can I get private IP adresses of all the instances which are part of an AutoScaling group.
I am trying to do some operation on all the instances which are part of an autoscaling group.
21
votes
7
answers
25k
views
How can I automatically cycle a new image in an AWS Auto Scaling Group?
I have a web application setup with a load balancer and auto scaling group to manage scaling. The source code is in a git repository so I don't have to update the images when the code changes, but ...
21
votes
2
answers
21k
views
AWS Fargate service: scale to zero?
I've recently migrated a small web application to AWS using Fargate and Aurora Serverless. The application doesn't get much traffic so my goal is to save cost while no one is using it. Aurora ...
21
votes
3
answers
40k
views
EC2 Update my existing AMI
I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything ...
17
votes
3
answers
9k
views
How to automatically update nginx upstream server list when aws ec2 hostname changes or increases?
I want to setup autoscaling in AWS. I don't want to use Elastic Load Balancer.
Autoscalling in Amazon creates EC2 instances seamlessly during demand spikes to maintain performance, and decreases ...
12
votes
5
answers
10k
views
EC2 Auto-Scaling with Spot and On-Demand Instances?
I'm looking to optimize the cost of our auto-scaling EC2 groups by having them launch spot instances instead of on-demand instances.
What I really want is to be able to keep some servers in the group ...
9
votes
6
answers
3k
views
EC2 Auto Scaling for mortals? Does that exist?
I have very simple EC2 setup with Eastic Load Balancer and two web servers under it.
I need to automatically start additional instance when CPU on one of them reaches 100% or some instance fails.
The ...
8
votes
1
answer
1k
views
Utilizing SSL on Multi-domain, Autoscaling Elastic Beanstalk Setup
We are creating a Content Management System for our company. It is important that this CMS support dynamic domain names on a dynamic number of servers. After many hours of research we felt that Amazon'...
7
votes
2
answers
9k
views
Spot instances frequently terminated in AWS auto scaling group (failing system health check)
We have 2 auto scaling groups (one for on-demand and one for spot instances) which are both set to a static number of instances (min, max, and desired are all the same - 5 in our case). The instances ...
7
votes
1
answer
5k
views
AWS ECS: Unable to place task
I am trying to set up an AWS service with autoscaling. I have created a cluster with an application loadbalancer and created a task using a docker image that should be open on port 8080 for use. I ...
7
votes
5
answers
5k
views
How can I determine an EC2 instances index/position in an Auto-scaling group?
I'm working on some automation scripts to bootstrap my application and will be using an auto-scaling group in AWS to spin up/down EC2 instances for my application.
I need to be able to re-create a ...
6
votes
1
answer
3k
views
AWS EC2 Instance Auto Scaling Confusion
So first off I'm completely new to AWS so bear with me.
I have had one instance running for a few months now and I now need to autoscale it as I am getting bigger traffic spikes and it gets ...
6
votes
2
answers
4k
views
AWS Autoscaling Group won't honor five minute draining policy of the Target Group when scaling down
We have an Autoscaling Group in AWS that we manually scale up and down at the time being. Our ASG is currently attached to one Target Group, which has all of our prod servers in it.
Before using the ...
6
votes
2
answers
7k
views
Automatically start an AWS EC2 instance from network request (wake-on-LAN)
I'd like to start an EC2 instance on-demand, and to take it down when it is idle for some period of time (e.g. no network activity for >= 1 hour), but I can't tell what a standard way of doing this in ...
5
votes
1
answer
3k
views
Is there a way to use length of a RabbitMQ queue used by Celery to start instance in an autoscale group?
Is there any way for Celery to emit events when the length of a queue exceeds a threshold? I want to use that event to start an EC2-instance.
We have two queues for two different tasks in Celery. ...
5
votes
2
answers
3k
views
AWS autoscaling and ec2 t2
I use t2.medium as a front servers at my architecture.
Usually AWS autoscaling use "CPU Utilization", but for t2 it's a bit tricky. When "CPU Credit Balance" is low, t2.medium "CPU Utilization" can ...
5
votes
2
answers
2k
views
EC2 - How do you tell the ELB when the machine is "ready"
I have a autoscaling setup with monitoring and all is well. The process for code deployment is now well in hand and basically does this.
Create a new launch_config which defines the git commit to ...
5
votes
1
answer
2k
views
Amazon EC2 notifying the instance when the autoscale service terminates it
I am in need of knowing when an instance is supposed to be shutdown by the autoscale, as I want the instances to register themselves and deregister themselves from a given service.
I know that the ...
5
votes
3
answers
3k
views
How to change Elastic Beanstalk launch configuration to launch template?
I want to replace the launch configuration with a launch template for my existing Elastic Beanstalk environment.
In the EC2 dashboard I created a launch template and selected it in the existing EB ...
5
votes
1
answer
664
views
EC2 Auto-Scaling: configure Target Tracking Policies to prefer Spot instances
Amazon recently introduced Target Tracking Policies for EC2 Auto Scaling.
In my production service, I am using two separate auto-scaling groups to support hybrid auto-scaling with a mixture of Spot ...
5
votes
3
answers
8k
views
How do I create DNS entries for EC2 instances created by Auto Scaling?
I'm looking into using auto scaling groups for a tier of webservers that would be fronted by an ELB. One of the things I'm having a hard time with is how to give each new instance the proper DNS name....
5
votes
1
answer
1k
views
AWS Beanstalk Auto-scaling Scaling Triggers with UnhealthyHost count and Health Checking
I have my scaling triggers set to look for an un-healthy host count but it does not seem to be working.
Now to test this - I am SSHing into one of my instances and halting the HTTPD service. Then, ...
4
votes
2
answers
9k
views
Why are pods failing to schedule due to resources when node has plenty available?
The pods in my application scale with 1 pod per user (each user gets their own pod). I have the limits for the application container set up like so:
resources:
limits:
cpu: 250m
...
4
votes
2
answers
2k
views
Auto-scaling EC2 Servers and Updating Code
We've come to the point where we need to set up autoscaling for our web server and I'm unsure how to go about the process of scaling servers and updating the the existing code without remaking a new ...
4
votes
2
answers
3k
views
Can Amazon Elastic Beanstalk auto-scale Amazon RDS?
I'm planning to run a PHP/MySQL application using Amazon Elastic Beanstalk. In the settings I can define when it should launch new instances automatically (Auto-Scaling).
However, as I understand ...
4
votes
1
answer
4k
views
How to use the same target group of instances with 2 ELBs (ALBs) + auto-scaling
I'm trying to route some traffic to one target group from two ELBs (ALBs). One is external & the other one is an internal one.
I have the following rules in my external ALB:
IF path is /static/* ...
4
votes
2
answers
2k
views
Auto-scaling docker containers based on EC2 instance load and SQS
I'll start with a small description of how my application works..
If a user on my website adds a task, the task is broken down into multiple sub-tasks, the number can vary from 1 to 10 tasks. These ...
4
votes
1
answer
2k
views
What is the best metric for auto-scaling GPU instances for machine learning inference in the cloud?
We have an API in AWS with a GPU instance that does inference. We have an auto-scaler setup with the minimum and maximum number of instances, but aren’t sure which metric (GPU/CPU usage, RAM usage, ...
4
votes
1
answer
938
views
How do I create an AWS autoscaling policy to match the size of an SQS queue?
I am building a render farm using SQS and autoscaling group(s).
I believe my use-case is one of the few where I actually want my group's capacity to match the size of the queue, up to a limit.
Right ...
4
votes
2
answers
1k
views
An Application Load Balancer with fewer Instances than Availability Zones?
Is it important to always have an ec2 instance in each zone of your load balancer? Are there advantages to having more than two or three zones?
We set up our application in an EC2 AutoScaling Group ...
4
votes
3
answers
2k
views
using AWS autoscaling to reboot unhealthy instance
I intend to reboot a running AWS instance which has been marked as unhealthy behind an ELB.
I have a setup where 2 instances are behind a Load Balancer and one of them contains lot of (>200 Gb) data ...
4
votes
0
answers
1k
views
Coreos auto scaling with docker and fleetctl on AWS
I spent a lot of time evaluating different ways to deploy an application to the cloud (let's assume AWS for this question) in the last few weeks but couldn't really find a satisfying solution.
We ...
3
votes
1
answer
7k
views
ELB Instance Out of service
After implementing ELB and Autoscalling on Amazon AWS. There's a wierd issue happens and we don't know either the reason or the fix.
We installed Auto Scalling configuration to add instance of AMI ID ...
3
votes
1
answer
2k
views
Bootstrapping in CloudFormation with Autoscale
My CloudFormation template creates an autoscale group and bootstrap it with utility script /opt/aws/bin/cfn-init. When I remove the bootstrap part out of my template the, autoscale get created without ...
3
votes
2
answers
2k
views
Amazon EC2 AutoScaling WordPress
I am currently looking to autoscale my wordpress installation on Amazon EC2.
Everything is working, I can bundle my EBS instance, put some policy and then amazon run automatically instances behind my ...
3
votes
1
answer
560
views
AWS auto-scaling policy - scaling-up too often
We have AWS auto-scaling policy configured for our Linux machine, but for some reason when I checked the scaling activity I realised that it triggers multiple 2-3 machines during very short span of ...
3
votes
2
answers
9k
views
Auto scaling AWS EC2 instances based on memory utilization
I am setting up auto scaling based on memory consumed by the particular instance. I went through the link posted at awsforums. I was able to set my metrics and using the bash script given and with the ...
3
votes
2
answers
2k
views
Autoscaling and NFS Server
I have a WebServer say WS-1 and a NFS server say NFS-1 setup on AWS. WS-1 is being managed by an elastic load balancer and also autoscaled. It also has an EBS mounted on /var/www which contains all ...
3
votes
1
answer
11k
views
AWS Elastic Load Balancer and target group health check fail for no apparent reason
I have completed my AWS ELB architecture for our website and successfully created the Launch Configuration and Target Groups for which instances are created behind the Load Balancer.
My configuration ...
3
votes
1
answer
209
views
Host discovery in AWS VPC
I just have a basic question. What is the recommended way to handle automatic host discovery in an AWS VPC? I have these Servers running and I want to figure out a neat way to skip having to configure ...
3
votes
2
answers
263
views
Nosql autoscaling of compute
Most of the nosql autoscaling faces issue due to the fact the data have to be migrated during peak load. What if data is stored in a shared storage like CLVM which has less overhead(compared to NFS or ...
3
votes
1
answer
1k
views
Searching AWS AutoScalingGroup resources by tags
I'm searching for autoscaling groups by tags - all of our AWS resources have a number of tags applied to them. However I only want to find auto scaling groups, not other types of resources.
The ...
3
votes
2
answers
5k
views
Auto-heal an EC2 instance with an Auto Scaling Group?
I'm trying to setup an auto-healing EC2 instance using an Auto Scaling Group and a user-data startup script. If the current server has an issue where it is no longer reachable, the instance should ...
3
votes
2
answers
1k
views
EC2 Autoscale policy to terminate instances if not needed but before 1 hour
I have setup EC2 Autoscale policies along CPU monitors and it's working well.
I have occasional bursts that triggers autoscale and more servers are added.
If the servers are experiencing a burst ...
3
votes
2
answers
2k
views
Multiple AWS EC2 running Auto Scaling and Distributed Memcache
I'm planning to use distributed Memcache across a series of Linux web servers on Amazon EC2. These EC2s currently run auto scaling so will increase and decrease with load.
I have used this post to ...
3
votes
3
answers
2k
views
Setting up AutoScaling using GUI based interface on Amazon EC2 service
We want to setup/configure AutoScaling on Amazon EC2 services using some GUI Intrerface. Is it possible to do?
As per our research, we found that it can be setup via API Queries or commandline tools ...
3
votes
1
answer
879
views
How to share a EFS/s3 with code in a auto scaling group?
the main problem is:
Infrastructure:
Autoscaling (min 1 - max 3)
RDS
ELB
elasticache (redis)
elasticsearch
I want to share a volume (EFS / S3) with the code of my application;
The size of it is ...
3
votes
1
answer
3k
views
How to properly deploy new code to AWS EC2 AutoScaling Group
Scenario:
Currently, we have a single production server running on an EC2 instance.
Since we are getting a lot of traffic, we would like to use the Autoscaling feature, but we are kind of new to this.
...
3
votes
1
answer
3k
views
Sequential hostnames and auto-scaling?
Is there a logical way to have sequentially numbered hostnames with servers that are autoscaling but not sequentially killed?
So if server13 is killed and server14/15 are alive, and the cluster ...