Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7168685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:49:46+00:00 2026-05-28T14:49:46+00:00

I am trying to perform auto scaling on Amazon EC2 with below commands: elb-create-lb

  • 0

I am trying to perform auto scaling on Amazon EC2 with below commands:

elb-create-lb nalb1 --headers --listener "lb-port=80,instance-port=80,protocol=http" --availability-zones us-east-1c  

elb-register-instances-with-lb nalb1 --headers --instances i-1ecef57c  

elb-configure-healthcheck nalb1 --headers --target "HTTP:80/" --interval 30 --timeout 3 --unhealthy-threshold 2 --healthy-threshold 10  

as-create-launch-config nalc1 --image-id ami-cdd306a4 --instance-type t1.micro  

as-create-auto-scaling-group naasg1 --launch-configuration nalc1 --availability-zones us-east-1c --min-size 0 --max-size 10 --load-balancers nalb1  
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaleup --adjustment 100 --type PercentChangeInCapacity  
as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaledown --adjustment=-1 --type ChangeInCapacity  

as-create-or-update-trigger nat1 \  
--auto-scaling-group naasg1 --namespace "AWS/EC2" \  
--measure CPUUtilization --statistic Average \  
--dimensions "AutoScalingGroupName=naasg1" \  
--period 60 --lower-threshold 30 --upper-threshold 60 \  
--lower-breach-increment=-1 --upper-breach-increment=1 \  
--breach-duration 120  

The following commands describe the status of various parameters once the above commands are hit.

root@domU-12-31-39-09-B8-12 ~# elb-describe-lbs  
LOAD_BALANCER nalb1 nalb1-1717211844.us-east-1.elb.amazonaws.com 2012-01-24T09:45:11.440Z  
root@domU-12-31-39-09-B8-12 ~# as-describe-launch-configs  
LAUNCH-CONFIG nalc1 ami-cdd306a4 t1.micro  
root@domU-12-31-39-09-B8-12 ~# as-describe-auto-scaling-groups  
AUTO-SCALING-GROUP naasg1 nalc1 us-east-1c nalb1 0 10 0  
root@domU-12-31-39-09-B8-12 ~# as-describe-policies  
No policies found  
root@domU-12-31-39-09-B8-12 ~# as-describe-triggers --auto-scaling-group naasg1  
DEPRECATED: This command is deprecated and included only to facilitate migration to the new trigger mechanism. You should use this command for migration purposes only.  
TRIGGER nat1 naasg1 NoData AWS/EC2 CPUUtilization Average 60  
root@domU-12-31-39-09-B8-12 ~#  

Despite all these, auto scaling is not happening
What might be the reason?

Thanks for help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:49:48+00:00Added an answer on May 28, 2026 at 2:49 pm

    The below command worked 🙂

    elb-create-lb nalb1 --headers --listener "lb-port=80,instance-port=80,protocol=http" --availability-zones us-east-1c
    
    elb-register-instances-with-lb nalb1 --headers --instances i-1ecef57c
    
    elb-configure-healthcheck nalb1 --headers --target "HTTP:80/" --interval 30 --timeout 3 --unhealthy-threshold 2 --healthy-threshold 10
    
    as-create-launch-config nalc1 --image-id ami-cdd306a4 --instance-type t1.micro
    
    as-create-auto-scaling-group naasg1 --launch-configuration nalc1 --availability-zones us-east-1c --min-size 2 --max-size 10 --load-balancers nalb1
    as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaleup --adjustment=2 --type ChangeInCapacity
    as-put-scaling-policy --auto-scaling-group naasg1 --name policy-scaledown --adjustment=-1 --type ChangeInCapacity
    as-set-desired-capacity naasg1 -c 2
    

    Of course you need to create alarms on CloudWatch and associate these policies to two alarms, each handling step up and step down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to perform an action periodically. I want to create a new instance
I'm trying to perform a simple INSERT and return the identity (auto-incrementing primary key).
I'm trying to perform a group by action on an aliased column (example below)
I'm trying to perform auto repeat of my image rotation animation with CABasicAnimation. I
I am trying to create an auto-refresh for a table using ajax/jquery, php/html, and
I'm trying perform a relatively basic TCP socket send/receive operation on Windows CE using
Trying to perform a single boolean NOT operation, it appears that under MS SQL
I'm trying to perform a LINQ query on a DataTable object and bizarrely I
I'm trying to perform a SQL query through a linked SSAS server. The initial
I'm trying to perform a bitwise NOT in SQL Server. I'd like to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.