Questions tagged [autoscaling]

The tag has no usage guidance.

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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'...
Patrick Stephan's user avatar
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 ...
Daniel Torres's user avatar
3 votes
1 answer
2k views

How to dynamically set tag values in an AWS auto-scaling group

I'm trying to create an AWS auto-scaling group, and I want my instances to have a tag with Key=Name and Value=processor%i, where the "%i" is dynamically replaced with a 1, 2, 3, etc as the instances ...
Cerin's user avatar
  • 3,650
2 votes
1 answer
933 views

Setting up autoscaling based on network throughput

I need help in setting up autoscaling based on network throughput. Our front instances are placed inside an autoscaling group. We want the number of instances to increase as a function of network ...
Marcus Stein's user avatar
2 votes
1 answer
89 views

Azure App Service Autoscale - scale in oldest server

We have a web app and use Autoscale running between 1 and 3 instances, scaling on cpu. All works well. What’s incredibly frustrating is that on scale in, the newest server is shut down and we would ...
Martin Perry's user avatar
2 votes
2 answers
1k views

How to use Aws code-deploy with Auto-scaling group

We have auto-scaling group behind an Application load balancer which launches instances if the avg. CPU Utilization goes beyond 70%. We have created a base AMI for the auto-scaling group. But the ...
Axel's user avatar
  • 491
2 votes
1 answer
219 views

How to configure a scale-in policy in AWS Auto Scaling Group?

I'm trying to configure AWS Auto Scaling Group scale-down policy. I've already configured the ASG to increase the number of instances if average CPU increases above a certain threshold and it works ...
Itai Ganot's user avatar
  • 10.8k
2 votes
2 answers
235 views

How does AWS autoscaling distribute spot instances between AZs?

I am using an AWS Autoscaling group that distributes instances across multiple AZs, with spot instance bidding defined. What will happen when the spot price jumps in one of the AZ, causing the ...
Ofer Velich's user avatar
2 votes
2 answers
278 views

Automatically scale a Gluster cluster

I'm trying to configure a proof of concept where a server automatically gets spun up and joins a replication cluster. When the server is no longer needed, it gets spun down, and automatically removed ...
Simon's user avatar
  • 213
2 votes
1 answer
339 views

Starting Linode instances via StackScripts based on Nagios events

I'm developing a web application (django/gunicorn/nginx) that needs to be scaled out according to load. The app will be hosted on Linodes so I intend to use StackScripts (and maybe Puppet) to start ...
Andrew's user avatar
  • 21
1 vote
1 answer
55 views

What should be the NodeClassRef for Karpenter's NodePool in GKE?

I have created a GKE cluster in GCP and wanted to install Karpenter on it for the autoscaling. While trying to install Karpenter, pods gives the error asking to create the NodeClaim resource which ...
Harshit Agarwal's user avatar
1 vote
0 answers
24 views

Dynamically Update Ips of AWS Autoscaling instances in Jenkins SSH Global configuration

We have few autoscaling groups in AWS and new instances are created frequently. We are using a declarative Jenkins pipeline to publish the build artifacts to those server using publish over ssh plugin ...
S_H's user avatar
  • 11
1 vote
0 answers
196 views

AWS EC2 auto-scaling Windows server: how to set the hostname ("computername")?

I have an elaborate framework for autoscaling UNIX servers to configure their hostname with a script on launch (startup) using an NFS (EFS) where they look up what their hostname should be, then set ...
Gunther Schadow's user avatar
1 vote
0 answers
358 views

How can I make sure that AWS does not kill tasks before auto scaling kicks in?

I work on an AWS Fargate service which has a health check configured as well as an autoscaling policy set. The application needs about 30 - 45 seconds to start. The application does receive traffic ...
sbrattla's user avatar
  • 1,600
1 vote
0 answers
171 views

Scaling based on number of processes running on ec2 instance

I have a use case where multiple python scripts will run in parallel on ec2. They read an SQS queue and perform operations such as download from S3, parse files, split, process, and update database. ...
Rohini's user avatar
  • 55
1 vote
0 answers
74 views

Autoscaling - lifecylehook implementation

I'm trying to implement my first ASG with a lifecycle hook and I am having this issue: LifecycleHandlerFunction: Encountered unsupported property Role The following resource(s) failed to create: [...
serialp's user avatar
  • 13
1 vote
0 answers
119 views

Why is Code Deploy not running in new instances generated from an Auto Scale Group?

I've setup a Code Pipeline where code is being successfully pulled from Github after every commit and then a Build phase runs specs and then a Deploy phase creates a Deployment pointing to amy ...
Erik Escobedo's user avatar
1 vote
2 answers
3k views

powershell user data script run on restart of the Windows instance

We have windows servers that do application initialization which takes almost 3-4 hours for servers to be online. So to avoid downtime we use autoscaling group lifecycle hooks. Now we want to shut ...
Shailesh Sutar's user avatar
1 vote
0 answers
606 views

AWS CodeDeploy skipping all instances while AS terminates a instance

We have a AWS CodeDeploy set up in our AWS environment. Yesterday, while CodeDeploy was deploying the code on all the instances, one of the instances got terminated by the AutoScaling group and ...
Axel's user avatar
  • 491
1 vote
1 answer
728 views

HTTP Health Check For Elastic Beanstalk App Triggers Scale / Capacity rules

I have an Elastic Beanstalk application that is running a wordpress application, and I would like some monitoring and scaling triggers for when the health check, the homepage, returns an HTTP response ...
robskrob's user avatar
  • 111
1 vote
1 answer
891 views

AWS Ec2 - Launch template spanning multiple subnets / availability zones

When creating an EC2 autoscaling group, it's possible to specify multiple subnets in different availability zones, so that the autoscaling group can start instances where there is capacity. Is there ...
samfrances's user avatar
1 vote
0 answers
151 views

Sending different signals for system shutdown and manual stops in supervisord

I have a set of auto-scaled EC2 instances that run a daemon managed by supervisord on each instance. I want to differentiate the clean-up behavior for the following cases: when shutting down ...
Achimnol's user avatar
  • 109
1 vote
0 answers
109 views

GAE instances sometimes unavailable (502). Console says, “VM restarting”

I have several services which have very little load (several requests per week sometimes). During periods of constant use there appears to be no problems. But after a period of being idle instances ...
beyondcompute's user avatar
1 vote
0 answers
40 views

Autoscaling cloud web applications- what method do people use to establish which metric is most suitable to scale off?

I understand with applications hosted in the Cloud, autoscaling is now a very popular method of ensuring applications can scale based on fluctuations load/work. From my reading, I know that most, if ...
treetop's user avatar
  • 51
1 vote
1 answer
39 views

Make domain controller automatically register IP of a replacement domain member

I have 3 VM servers in a domain. One of them is the domain controller with active directory and DNS installed. Another server is an application server. One of the requirements for that application ...
Cohaven's user avatar
  • 51
1 vote
0 answers
78 views

Auto-scaling by results of HTTP request

I'm running an application in the cloud with fairly elastic demand and need to make use of auto-scaling. The application uses a pub/sub system to receive and process job requests. Each server ...
jmkmay's user avatar
  • 211
1 vote
1 answer
479 views

Failed creation of IAM Autoscale role when adding autoscale to a ECS task

I am adding some auto scaling setting to a ECS task The idea is I will spawn new service when the length of the message queue increase, otherwise decrease After I put in the definition as defined ...
Anthony Kong's user avatar
  • 3,488
1 vote
0 answers
68 views

Multiple application instances and Docker usage

I have a classical web application (CRM tool) which requires nginx, python (flask), postgresql and redis to work. I plan to sell this application to different companies and host them on my powerful ...
Buzz Fizz's user avatar
1 vote
1 answer
636 views

Google cloud autoscaling kills instances which do job

I'm trying to setup GCP autoscaling for my application (video converting service) and I'm experiencing the following problem: Let's say the autoscaler creates 3 new instances and in the each ...
user2452849's user avatar
1 vote
1 answer
326 views

AWS autoscaling: downscale too fast

The scaling configured according to cpu usage: On the chart it's about 8 minutes between upscaling and 2 mins between downscalings. We cannot upscale faster because an instance requires ~5min to ...
Putnik's user avatar
  • 2,337
1 vote
0 answers
285 views

How to keep ec2 instance running in auto-scaling group for at least an hour?

In ASG it makes no sense to terminate an on-demand instance until it runs (1, 2, n) hour(s) 59 mins because you pay for time to full hour anyway. How to configure termination to make sure that billed ...
Putnik's user avatar
  • 2,337
1 vote
1 answer
97 views

auto instance type changer for amazon ec2?

Basically, I'd like to take large and x-large instances on EC2 and have them scale down to smalls during the late hours and on weekends automatically. A few minute downtime wi. I think this would ...
user1130176's user avatar
1 vote
1 answer
767 views

Uneven load distribution on an elasticache cluster

Amazon elasticache cluster looks to be a really good choice for auto-scaling but it seems the load distribution is not equal among the nodes. Both memory and CPU wise the node 1 seems to take almost ...
Ashish Gaurav's user avatar
0 votes
0 answers
27 views

Trigger AWS Autoscale automatically

I have an Autoscale Web Application in AWS. When I don't use it, I terminated EC2 instances automatically with Lambda (with Cloudwatch). But I couldn't find an automatic structure to trigger it again. ...
MrTux01's user avatar
  • 103
0 votes
0 answers
22 views

How many queries will fail if an error occurs within a single process of a single host?

Context: I have a cluster of H hosts serving an API, where each hosts serves the api using P (constant) number of (python, but irrelevant) processes (asynchronously, but otherwise also irrelevant). I ...
pwoolvett's user avatar
  • 101
0 votes
0 answers
35 views

EKS provisions nodes more than maxnodes using Karpenter

Currently I am using EKS with karpenter and I provision EKS cluster with values minNodes: 1 maxNodes: 2 DesiredNodes: 1 Then I setup the karpenter using this link. After Setting it up as referred by ...
Suyog Dahal's user avatar
0 votes
0 answers
74 views

DynamoDB Auto-Scaling, Application Auto-Scaling

I'm trying to setup a set of boto3 python AWS scripts which can create new users and dynamoDB tables, so that the web app I'm working on can add new users with properly scoped permissions. I'm having ...
Devin Ceartas's user avatar
0 votes
1 answer
2k views

How to fix HPA deprecation warning on GKE?

Observed output kubectl describe hpa Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler Attempted fix ...
Jared Beck's user avatar
0 votes
0 answers
51 views

Scaling up a client vpn

We are setting up an ikev2 client vpn using strongswan. So far we have managed to setup a single server using letsencrypt certificate with eap-radius authentication method. We are able to connect to ...
Hamza Khalid's user avatar
0 votes
1 answer
362 views

Can multiple EC2 Auto Scaling Group policies be defined for a single environment?

Given an Auto Scaling Group with a single EC2 environment, am I able to create a scheduled scaling policy and a CPU target tracking policy for the ASG? For example, I would like to define a scheduled ...
Xamuel's user avatar
  • 1
0 votes
0 answers
137 views

Can ecs services communicate with AWS AutoScalingGroup without NAT Gateway

Initially asked this question on StackOverflow but this should be the right place... I have an architecture similar to https://github.com/aws-samples/ecs-refarch-cloudformation I would like to know if ...
user2134216's user avatar
0 votes
1 answer
47 views

How do I schedule Pods so that every cluster Node has the same set of services?

I want every Kubernetes node to have the same set of pods on it. If I scale up a deployment, I want the new pods to go on new cluster nodes that I scaled up. Do I use required node affinity for this?
Samuel Squire's user avatar
0 votes
0 answers
265 views

AWS AutoScaling - Combining Dynamic and Predictive Scaling

I'm working on setting up scaling policies for an ASG application. I'm wondering if it is possible (or advisable) to combine Predictive and Dynamic scaling policies for a single ASG. The peaks for the ...
user1751825's user avatar
0 votes
2 answers
38 views

Google cloud Auto scaling - how to create vm using existing vms image

Hi I am new to google cloud. I want to use autoscaling. My question is that is it possible to use the image of my current vm as template? Or do I have to create a fresh vm instance and create script ...
Bishwadeep KC's user avatar
0 votes
0 answers
429 views

Run Github actions workflow ec2 auto scaled servers

Our application is hosted on AWS EC2, we add code updates & fix bugs every few weeks. Our code is on github and github actions does the deployment with automated & manual workflows. We have a ...
MD Nasirul Islam's user avatar
0 votes
1 answer
715 views

Autoscaling Groups: what happens during scale-in if all ec2 are termination protected?

Suppose I create an ec2 autoscaling group where each instance is protect terminated. Suppose a min of 2 and a maximum of 4, I was wondering what happens if, in presence of a step policy: There is a ...
Phate's user avatar
  • 155
0 votes
0 answers
260 views

EBS target response time increasing before CPU utilization

I'm in a company where we have an elastic beanstalk configuration and it works fine with our CICD. The only issue is that earlier today i ran a stress test (basically just disabled AWS shield and went ...
Lukas Mittun Alexander Guldstv's user avatar
0 votes
0 answers
310 views

GCE autoscaling based on custom metrics provided by the running instances?

I have a managed instance group with autoscaling. Each instance runs a program that polls a remote site asking "do you have any work for me?" If the answer is "no", it goes to ...
JayEye's user avatar
  • 121
0 votes
0 answers
516 views

Targeting specific google cloud run instance through HTTP

I'm using cloud run to run a node.js app with lru-cache and auto scaling. I have created a route to allow external services to reset the application's cache. I am now looking for a way to target every ...
J Dubuis's user avatar
  • 101
0 votes
0 answers
1k views

autoscaling php-fpm in AWS ECS

I have a t3.medium instance managed by ASG and used by ECS. My application requires approximately 25% of the capacity of this instance to operate at a minimum. will work in the standard nginx + ...
Julio's user avatar
  • 1