Home > amazon ec2 > What is the auto-scaling policy priority?

What is the auto-scaling policy priority?

October 20Hits:2
Advertisement

Asked this over at the AWS forums with no response, so I thought I'd give it a go here.

If I have two auto-scaling priorities: 25% increase 50% increase

And I have two separate alarms on CPU utilization for them: 50% CPU Utilization = 25% increase 75% CPU Utilization = 50% increase

If CPU jumps to 80%, it will trigger both alarms, but will it fire the 50% increase policy or the 25% increase policy? If there are a way to ensure it would fire the 50% increase?

There doesn't seem to be any way to prioritise alarms or policies in this way that I can see.

Answers

Both policies will trigger if you don't have DefaultCooldown set long enough in your config to prevent rapid events.

You can use the API call DescribeAutoScalingGroups to check what this value is set to.

Example: If this value is set to 300 (it's in seconds) that means the group is set to only scale every 5 minutes. If the 50% CPU alarm is triggered and then shortly after the 75% CPU alarm is triggered the system will wait 5 minutes before allowing the second to go through if the alarm is still present.

If the usage jump is from 10% to 80% immediately the 75% CPU alarm should trigger.

From the Auto Scaling Docs (last paragraph):

... Auto Scaling chooses the policy that has the greatest impact on the Auto Scaling group. For example, suppose that the policy for CPU utilization instructs Auto Scaling to launch 1 instance, while the policy for the SQS queue prompts Auto Scaling to launch 2 instances. If the scale out criteria for both policies are met at the same time, Auto Scaling gives precedence to the SQS queue policy, because it has the greatest impact on the Auto Scaling group. This results in Auto Scaling launching two instances into the group. This precedence applies even when the policies use different criteria for scaling out. For instance, if one policy instructs Auto Scaling to launch 3 instances, and another instructs Auto Scaling to increase capacity by 25 percent, Auto Scaling give precedence to whichever policy has the greatest impact on the group at that time.

Related Articles

  • What is the auto-scaling policy priority?October 20

    Asked this over at the AWS forums with no response, so I thought I'd give it a go here. If I have two auto-scaling priorities: 25% increase 50% increase And I have two separate alarms on CPU utilization for them: 50% CPU Utilization = 25% increase 75

  • How to set the auto scaling policy based upon memoryJanuary 10

    I was able to set the auto scaling policy and also tested works fine, I am using EC2 small instance to run Ruby on Rails app, since Rails is more of Memory Intense platform I wanna scale the EC2 instances based upon the memory not on CPU Utilization.

  • AWS EC2 Instance Auto Scaling ConfusionJanuary 15

    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 overloaded at times. So let me go through what I have done s

  • PHP Sessions on Auto-Scaling ServersFebruary 23

    (Apologies for cross-posting with SO. I wasn't sure where it was more appropriate.) I'm working on a PHP web app deployed to Amazon Web Services. We have load balancers in front of auto-scaled application servers. The problem we're facing at the mome

  • Auto scaling AWS EC2 instnaces based on memory utilization

    Auto scaling AWS EC2 instnaces based on memory utilizationJanuary 12

    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 same variables. In figuring out how to set auto s

  • Deploy an AWS Auto Scaling groups using Chef ServerApril 12

    You can, for example, to deploy an an Auto Scaling groups consists of web severs, ELB and DB using AWS CloudFormation (with Chef server): http://aws.amazon.com/cloudformation/aws-cloudformation-templates/ But, you need to initially create a CF templa

  • EC2 Auto-Scaling with Spot and On-Demand Instances?November 14

    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 as on-demand instances, regardless of what happens

  • AWS auto scaling setup bootstrap script and ssh accessJuly 12

    I'm not a specialist in networking and I'm struggling at the moment trying to setup auto scaling for a web application. I have one server - we can call it master - (outside the auto scaling group) which I use for memcache and beanstalkd queue. I also

  • AWS Beanstalk - getting "Access denied while accessing Auto Scaling and -" errorJanuary 27

    When I try to launch an Elastic Beanstalk environment from the command line, I get this error during the process: Environment health has transitioned from Pending to Warning. Access denied while accessing Auto Scaling and Elastic Load Balancing using

  • Amazon Auto Scaling + Elastic Load Balancer + Web ApplicationDecember 15

    Let's say I have web application that runs on a single EC2 instance (PHP + PostgreSQL). Now I create Load Balancer and set Auto Scaling. The question is: how do I replicate database on the fly when AutoScaling starts new EC2 instance? How do I replic

  • Multiple AWS EC2 running Auto Scaling and Distributed MemcacheMarch 20

    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 guide the initial setup. best practice with memcache/

  • EC2 Auto Scaling for mortals? Does that exist?October 22

    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 first thing I looked was Amazon http://aws.amazon.

  • AWS - Is there an UI tool for setting/editing auto-scaling groups?October 31

    Is there a tool that simplifies the auto-scaling group management? XML-based, UI-based, etc. Thanks --------------Solutions------------- I am working on this myself and really the only two options I have found so far is the ec2 api tools - http://aws

  • AWS Cloud formation plus auto scalingNovember 10

    I have created a cloud formation script to launch two instances, attach a volume on startup, and setup a load balancer. Now I am looking at setting up auto scaling and I am confused by the launch config. Does that need to basically include everything

  • unable to set up the ec2 ubuntu instance for auto scalingJanuary 6

    I went through enough number of blog post which actually guides how to set up the auto scaling platform. I am using the Ubuntu ec2 32 bit AMI. From which I am trying to scale the instances, I am trying to set up the auto scaling initially in a micro

  • Can someone help me figure out an efficient auto scaling configuration? January 7

    This is my first time releasing a web app. I'm going to using Django with Nginx and a couple of other scripts that have been piped. I wanted to know which auto scaling strategy I can use. Right now, I'm playing around with the free EC2 micro instance

  • How can I automatically cycle a new image in an AWS Auto Scaling Group?April 30

    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 occasionally the environment changes so we create a n

  • Approach to auto-scaling with Amazon AWSMay 10

    I want to know about the possible options for auto-scaling my web app architecture. What I have in architect is web-app (Tomcat), middleware (RabbitMQ), database(MongoDB), worker(standalone Java app). Right now I am attempting scaling based on the CP

  • Auto-scaling EC2 Servers and Updating CodeNovember 13

    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 AMI and changing the autoscale config to use it. I'

  • Migrating to AWS Cloud with auto-scaling - where to put Redis and ElasticSearch?November 27

    I've been trying to research this topic but haven't found anywhere that recommends where to install services such as Redis and ElasticSearch when migrating to a cloud framework. I'm currently running a Symfony2 application on 2 static servers - one i

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.774 s.