SlideShare une entreprise Scribd logo
1  sur  19
Auto	
  Scaling	
  
   Amazon	
  EC2	
  




                       Akash	
  Agrawal	
  
What	
  is	
  Auto	
  Scaling?	
  

•  Make	
  your	
  compu=ng	
  power	
  pure	
  ELASTIC.	
  

•  Increase	
  or	
  Decrease	
  Compu=ng	
  Power	
  as	
  
   your	
  applica=on	
  DEMAND.	
  
   – If	
  Demand	
   Compu=ng	
  "
   – If	
  Demand	
   Compu=ng	
  "
Infrastructure	
  	
  
Cost	
  




                         Predicted	
  demand	
  




                         Time	
  
Infrastructure	
  	
  
Cost	
  




                         Predicted	
  demand	
  
                         Actual	
  Demand	
  




                         Time	
  
Infrastructure	
  	
  
Cost	
  

             High	
  Capital	
  
             Expenditure	
  
                                   You	
  just	
  lost	
  
                                   your	
  customer	
  




                                                             Predicted	
  demand	
  
                                                             Actual	
  Demand	
  
                                                             Scale-­‐up	
  approach	
  




                                                             Time	
  
Infrastructure	
  	
  
Cost	
                             Too	
  much	
  excess	
  
                                   Capacity	
  
             High	
  Capital	
  
             Expenditure	
  
                                                               You	
  just	
  lost	
  
                                                               your	
  customer	
  




                                                                                         Predicted	
  demand	
  
                                                                                         Actual	
  Demand	
  
                                                                                         Scale-­‐up	
  approach	
  
                                                                                         Tradi=onal	
  Scale-­‐out	
  
                                                                                         approach	
  




                                                                                         Time	
  
Infrastructure	
  	
  
Cost	
                             Too	
  much	
  excess	
  
                                   Capacity	
  
             High	
  Capital	
  
             Expenditure	
  
                                                               You	
  just	
  lost	
  
                                                               your	
  customer	
  




                                                                                         Predicted	
  demand	
  
                                                                                         Actual	
  Demand	
  
                                                                                         Scale-­‐up	
  approach	
  
                                                                                         Tradi=onal	
  Scale-­‐out	
  
                                                                                         approach	
  

                                                                                         Automated	
  Elas=city	
  




                                                                                         Time	
  
Why	
  ?	
  
•  Get	
  rid	
  of	
  preemp=on.	
  

•  No	
  need	
  to	
  worry	
  for	
  cost	
  of	
  stale	
  hardware.	
  

•  No	
  worries	
  of	
  being	
  short	
  than	
  demand.	
  

•  Cost	
  of	
  hardware	
  is	
  propor=onal	
  to	
  demand.	
  
What’s	
  in	
  Store	
  ?	
  
•  No	
  Extra	
  charge	
  (if	
  you	
  have	
  already	
  enabled	
  
   Cloud	
  Watch)	
  

•  Also	
  help	
  in	
  maintaining	
  EC2	
  fleet	
  at	
  fixed	
  Size.	
  

•  Mul=ple	
  proper=es	
  (metrics)	
  to	
  configure.	
  
    – Can	
  club	
  proper=es	
  as	
  well.	
  
Auto	
  Scaling	
  APIs	
  	
  
•    	
  as-­‐create-­‐auto-­‐scaling-­‐group	
  
       –  	
  Create	
  a	
  new	
  auto	
  scaling	
  group	
  with	
  specified	
  name	
  and	
  other	
  aTributes	
  

•    as-­‐create-­‐launch-­‐config	
  
       –  Create	
  a	
  new	
  launch	
  config	
  with	
  specified	
  aTributes.	
  

•    as-­‐create-­‐or-­‐update-­‐trigger	
  
       –  Creates	
  a	
  new	
  trigger	
  or	
  updates	
  an	
  exis=ng	
  trigger.	
  

•    as-­‐delete-­‐auto-­‐scaling-­‐group	
  
       –  Delete	
  the	
  specified	
  auto	
  scaling	
  group	
  if	
  the	
  group	
  has	
  no	
  instances	
  and	
  no	
  scaling	
  ac=vi=es	
  in	
  progress.	
  

•    as-­‐delete-­‐launch-­‐config	
  
       –  Delete	
  the	
  specified	
  launch	
  configura=on.	
  

•    as-­‐delete-­‐trigger	
  
       –  Delete	
  a	
  trigger.	
  

•    as-­‐describe-­‐auto-­‐scaling-­‐groups	
  
       –  Describes	
  the	
  specified	
  auto	
  scaling	
  group(s)	
  if	
  the	
  group(s)	
  exists.	
  
Auto	
  Scaling	
  APIs	
  	
  
•    as-­‐describe-­‐launch-­‐configs	
  
       –  Describe	
  the	
  specified	
  launch	
  configura=ons	
  if	
  they	
  exist.	
  

•    as-­‐describe-­‐scaling-­‐ac=vi=es	
  
       –  Describe	
  a	
  set	
  of	
  ac=vi=es	
  or	
  all	
  ac=vi=es	
  belonging	
  to	
  a	
  group,	
  describing	
  at	
  most	
  max-­‐ac=vi=es	
  at	
  a	
  =me.	
  

•    as-­‐describe-­‐triggers	
  
       –  Describes	
  a	
  trigger	
  including	
  its	
  internal	
  state.	
  

•    as-­‐set-­‐desired-­‐capacity	
  
       –  Set	
  the	
  desired	
  capacity	
  of	
  the	
  specified	
  auto	
  scaling	
  group	
  (within	
  the	
  range	
  of	
  group's	
  minimum	
  and	
  
          maximum	
  size).	
  

•    as-­‐terminate-­‐instance-­‐in-­‐auto-­‐scaling-­‐group	
  
       –  Terminate	
  a	
  given	
  instance	
  with/without	
  reducing	
  the	
  group's	
  capacity.	
  

•    as-­‐update-­‐auto-­‐scaling-­‐group	
  
       –  Update	
  specified	
  auto	
  scaling	
  group	
  with	
  aTributes	
  

•    as-­‐version	
  
 as-­‐create-­‐auto-­‐scaling-­‐group	
  
	
  as-­‐create-­‐auto-­‐scaling-­‐group	
  	
  
       AutoScalingGroupName	
  	
  -­‐-­‐availability-­‐zones	
  	
  value[,value...]	
  -­‐-­‐launch-­‐configura=on	
  	
  value	
  	
  -­‐-­‐max-­‐size	
  
       value	
  	
  -­‐-­‐min-­‐size	
  	
  value	
  [-­‐-­‐cooldown	
  	
  value	
  ]	
  [-­‐-­‐load-­‐balancers	
  	
  value[,value...]	
  ]	
  [General	
  Op=ons]	
  




Example:	
  
Create	
  group	
  'test-­‐group-­‐1'	
  with	
  required	
  parameters	
  (will	
  have	
  1	
  instance	
  launched	
  
with	
  config	
  'test-­‐config-­‐1')	
  


      as-­‐create-­‐auto-­‐scaling-­‐group	
  test-­‐group-­‐1	
  -­‐-­‐launch-­‐configura=on	
  test-­‐config-­‐1	
  -­‐-­‐availability-­‐zones	
  us-­‐
      east-­‐1a	
  -­‐-­‐min-­‐size	
  1	
  -­‐-­‐max-­‐size	
  1	
  
as-­‐create-­‐launch-­‐config	
  
as-­‐create-­‐launch-­‐config	
  
       LaunchConfigura=onName	
  	
  -­‐-­‐image-­‐id	
  	
  value	
  	
  -­‐-­‐instance-­‐type	
  	
  value	
  [-­‐-­‐block-­‐device-­‐mapping	
  	
  
       "key1=value1,key2=value2..."	
  ]	
  [-­‐-­‐kernel	
  	
  value]	
  [-­‐-­‐key	
  	
  value	
  ]	
  [-­‐-­‐ramdisk	
  	
  value	
  ]	
  [-­‐-­‐group	
  	
  value[,value...]	
  ]	
  
       [-­‐-­‐user-­‐data	
  	
  value	
  ]	
  [-­‐-­‐user-­‐data-­‐file	
  	
  value	
  ]	
  	
  [General	
  Op=ons]	
  


Example:	
  
Create	
  a	
  launch	
  configura=on	
  with	
  name	
  ’testlc'	
  to	
  launch	
  'm1.small'	
  type	
  instances	
  
with	
  imageId	
  'ami-­‐f7c5219e'.	
  

      as-­‐create-­‐launch-­‐config	
  testlc	
  -­‐-­‐image-­‐id	
  ami-­‐f7c5219e	
  -­‐-­‐instance-­‐type	
  m1.small	
  	
  
as-­‐create-­‐or-­‐update-­‐trigger	
  
as-­‐create-­‐or-­‐update-­‐trigger	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  TriggerName	
  	
  -­‐-­‐auto-­‐scaling-­‐group	
  	
  value	
  	
  -­‐-­‐breach-­‐dura=on	
  	
  value	
  -­‐-­‐dimensions	
  	
  
                                  "key1=value1,key2=value2..."	
  	
  -­‐-­‐lower-­‐breach-­‐increment	
  value	
  	
  -­‐-­‐lower-­‐threshold	
  	
  value	
  	
  -­‐-­‐measure	
  	
  value	
  	
  
                                  -­‐-­‐period	
  	
  value	
  -­‐-­‐sta=s=c	
  	
  value	
  	
  -­‐-­‐upper-­‐breach-­‐increment	
  	
  value	
  	
  -­‐-­‐upper-­‐threshold	
  value	
  [-­‐-­‐namespace	
  	
  
                                  value	
  ]	
  [-­‐-­‐unit	
  	
  value	
  ]	
  	
  [General	
  Op=ons]	
  


Example:	
  
Create	
  a	
  trigger	
  with	
  a	
  minimal	
  set	
  of	
  parameters.	
  

          as-­‐create-­‐or-­‐update-­‐trigger	
  	
  test-­‐trigger	
  -­‐-­‐auto-­‐scaling-­‐group	
  test-­‐group	
  -­‐-­‐namespace	
  "AWS/EC2"	
  -­‐-­‐
          measure	
  CPUU=liza=on	
  -­‐-­‐sta=s=c	
  Average	
  -­‐-­‐dimensions	
  "AutoScalingGroupName=test-­‐group"	
  -­‐-­‐period	
  60	
  
          -­‐-­‐lower-­‐threshold	
  20	
  -­‐-­‐upper-­‐threshold	
  80	
  -­‐-­‐lower-­‐breach-­‐increment=-­‐1	
  -­‐-­‐upper-­‐breach-­‐increment	
  1	
  -­‐-­‐
          breach-­‐dura*on	
  120	
  
as-­‐create-­‐or-­‐update-­‐trigger	
  
as-­‐create-­‐or-­‐update-­‐trigger	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  TriggerName	
  	
  -­‐-­‐auto-­‐scaling-­‐group	
  	
  value	
  	
  -­‐-­‐breach-­‐dura=on	
  	
  value	
  -­‐-­‐dimensions	
  	
  
                                  "key1=value1,key2=value2..."	
  	
  -­‐-­‐lower-­‐breach-­‐increment	
  value	
  	
  -­‐-­‐lower-­‐threshold	
  	
  value	
  	
  -­‐-­‐measure	
  	
  value	
  	
  
                                  -­‐-­‐period	
  	
  value	
  -­‐-­‐sta=s=c	
  	
  value	
  	
  -­‐-­‐upper-­‐breach-­‐increment	
  	
  value	
  	
  -­‐-­‐upper-­‐threshold	
  value	
  [-­‐-­‐namespace	
  	
  
                                  value	
  ]	
  [-­‐-­‐unit	
  	
  value	
  ]	
  	
  [General	
  Op=ons]	
  


Example:	
  
Create	
  a	
  trigger	
  with	
  a	
  minimal	
  set	
  of	
  parameters.	
  

          as-­‐create-­‐or-­‐update-­‐trigger	
  	
  test-­‐trigger	
  -­‐-­‐auto-­‐scaling-­‐group	
  test-­‐group	
  -­‐-­‐namespace	
  "AWS/EC2"	
  -­‐-­‐
          measure	
  CPUU=liza=on	
  -­‐-­‐sta=s=c	
  Average	
  -­‐-­‐dimensions	
  "AutoScalingGroupName=test-­‐group"	
  -­‐-­‐period	
  60	
  
          -­‐-­‐lower-­‐threshold	
  20	
  -­‐-­‐upper-­‐threshold	
  80	
  -­‐-­‐lower-­‐breach-­‐increment=-­‐1	
  -­‐-­‐upper-­‐breach-­‐increment	
  1	
  -­‐-­‐
          breach-­‐dura*on	
  120	
  
Why	
  Auto	
  Scaling	
  Rocks?	
  	
  
•  Make	
  Sure	
  that	
  your	
  applica=on	
  is	
  able	
  to	
  
   balance	
  load	
  Autonomously.	
  

•  No	
  humans	
  are	
  monitoring.	
  

•  It	
  checks	
  an	
  awful	
  lot	
  of	
  data	
  points	
  every	
  
   minute	
  or	
  so…	
  
    – oh,	
  we	
  have	
  idle	
  CPU,	
  let’s	
  kill	
  some	
  instances.	
  
Why	
  Auto	
  Scaling	
  Sucks?	
  	
  
•  It	
  takes	
  some	
  =me	
  for	
  your	
  EC2	
  instances	
  to	
  
   launch	
  =>	
  LATENCY	
  

•  Why	
  Pay	
  extra	
  for	
  Cloud	
  Watch	
  (if	
  you	
  don’t	
  use)	
  
    Almost	
  all	
  capacity	
  changes	
  are	
  foreseeable.	
  If	
  you	
  had	
  
    done	
  proper	
  capacity	
  planning.	
  

•  Spikes	
  

•  Malicious	
  traffic	
  
Do	
  you	
  actually	
  need	
  it	
  ?	
  
•  Can	
  you	
  map	
  your	
  traffic	
  with	
  machine	
  proper=es	
  ?	
  

•  Do	
  you	
  properly	
  know	
  your	
  metrics	
  to	
  be	
  monitored	
  ?	
  

•  Do	
  you	
  think	
  that	
  auto	
  scaling	
  fire-­‐up	
  and	
  shut-­‐down	
  
   instances	
  in	
  =me	
  ?	
  

•  Do	
  you	
  actually	
  worry	
  about	
  delays	
  and	
  other	
  
   parameters	
  ?	
  (what	
  does	
  your	
  applica=on	
  does)	
  
By:
Akash Agrawal
http://tech-queries.blogspot.com

Contenu connexe

Tendances

Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS PricingLynn Langit
 
Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015Amazon Web Services
 
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
Elastic  Load Balancing Deep Dive - AWS Online Tech TalkElastic  Load Balancing Deep Dive - AWS Online Tech Talk
Elastic Load Balancing Deep Dive - AWS Online Tech TalkAmazon Web Services
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & LoggingJason Poley
 
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017Amazon Web Services
 
Storage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierStorage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierAmazon Web Services
 
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Web Services
 
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanAmazon Web Services
 
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationAWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationSanjay Sharma
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesAmazon Web Services
 
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Amazon Web Services
 

Tendances (20)

Understand AWS Pricing
Understand AWS PricingUnderstand AWS Pricing
Understand AWS Pricing
 
Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015Amazon Route 53 - Webinar Presentation 9.16.2015
Amazon Route 53 - Webinar Presentation 9.16.2015
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
Elastic  Load Balancing Deep Dive - AWS Online Tech TalkElastic  Load Balancing Deep Dive - AWS Online Tech Talk
Elastic Load Balancing Deep Dive - AWS Online Tech Talk
 
Amazon s3
Amazon s3Amazon s3
Amazon s3
 
Aws Autoscaling
Aws AutoscalingAws Autoscaling
Aws Autoscaling
 
AWS Monitoring & Logging
AWS Monitoring & LoggingAWS Monitoring & Logging
AWS Monitoring & Logging
 
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017
Amazon Elastic Compute Cloud (EC2) - Module 2 Part 1 - AWSome Day 2017
 
What is AWS?
What is AWS?What is AWS?
What is AWS?
 
AWS Basics .pdf
AWS Basics .pdfAWS Basics .pdf
AWS Basics .pdf
 
Storage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon GlacierStorage with Amazon S3 and Amazon Glacier
Storage with Amazon S3 and Amazon Glacier
 
Amazon EC2 Masterclass
Amazon EC2 MasterclassAmazon EC2 Masterclass
Amazon EC2 Masterclass
 
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
Amazon Virtual Private Cloud (VPC): Networking Fundamentals and Connectivity ...
 
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity PlanDay 5 - AWS Autoscaling Master Class - The New Capacity Plan
Day 5 - AWS Autoscaling Master Class - The New Capacity Plan
 
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps CertificationAWS Elastic Load Balancing for AWS Architect & SysOps Certification
AWS Elastic Load Balancing for AWS Architect & SysOps Certification
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Amazon CloudFront 101
Amazon CloudFront 101Amazon CloudFront 101
Amazon CloudFront 101
 
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
Automating Management of Amazon EC2 Instances with Auto Scaling - March 2017 ...
 
AWS EC2
AWS EC2AWS EC2
AWS EC2
 

En vedette

En vedette (17)

LISTERS LAW APRIL EDITION
LISTERS LAW APRIL EDITIONLISTERS LAW APRIL EDITION
LISTERS LAW APRIL EDITION
 
CHAPTER 4
CHAPTER 4CHAPTER 4
CHAPTER 4
 
Sensation & Perception
Sensation & PerceptionSensation & Perception
Sensation & Perception
 
Fun With 3-D Stereograms
Fun With 3-D StereogramsFun With 3-D Stereograms
Fun With 3-D Stereograms
 
Mathematical psychology1- webner fechner law
Mathematical psychology1- webner fechner lawMathematical psychology1- webner fechner law
Mathematical psychology1- webner fechner law
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
CHAPTER 1
CHAPTER 1CHAPTER 1
CHAPTER 1
 
Perception
PerceptionPerception
Perception
 
Psychophysics of measurements, weber’s law, visual threshold & sensitivity
Psychophysics of measurements, weber’s law, visual threshold & sensitivityPsychophysics of measurements, weber’s law, visual threshold & sensitivity
Psychophysics of measurements, weber’s law, visual threshold & sensitivity
 
Psychophysics
PsychophysicsPsychophysics
Psychophysics
 
PPT presentation on Perception presented by Naveen Kumar, PGDM (IME, GZB)
PPT presentation on Perception presented by Naveen Kumar, PGDM (IME, GZB)PPT presentation on Perception presented by Naveen Kumar, PGDM (IME, GZB)
PPT presentation on Perception presented by Naveen Kumar, PGDM (IME, GZB)
 
Physiology of posture movementand equilibrium
Physiology of posture movementand equilibriumPhysiology of posture movementand equilibrium
Physiology of posture movementand equilibrium
 
1 introduction to psychological statistics
1 introduction to psychological statistics1 introduction to psychological statistics
1 introduction to psychological statistics
 
1 introduction to experimental psychology
1 introduction to experimental psychology1 introduction to experimental psychology
1 introduction to experimental psychology
 
Light and dark adaptation
Light and dark adaptationLight and dark adaptation
Light and dark adaptation
 
Experimental Psychology
Experimental PsychologyExperimental Psychology
Experimental Psychology
 
Our application for the job you advertised
Our application for the job you advertisedOur application for the job you advertised
Our application for the job you advertised
 

Similaire à Auto scaling

Scale New Business Peaks with Amazon AutoScaling - Harish Ganesan
Scale New Business Peaks with Amazon AutoScaling - Harish GanesanScale New Business Peaks with Amazon AutoScaling - Harish Ganesan
Scale New Business Peaks with Amazon AutoScaling - Harish GanesanAmazon Web Services
 
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Amazon Web Services
 
Scale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingScale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingHarish Ganesan
 
Scaling data on public clouds
Scaling data on public cloudsScaling data on public clouds
Scaling data on public cloudsLiran Zelkha
 
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)Amazon Web Services
 
How to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureHow to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureCommon Sense
 
An Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAn Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAmin Abbaspour
 
Lean Supply Chain Execution with Datacraft Solutions
Lean Supply Chain Execution with Datacraft SolutionsLean Supply Chain Execution with Datacraft Solutions
Lean Supply Chain Execution with Datacraft SolutionsDatacraft Solutions Inc.
 
Preparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgivingPreparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgiving8KMiles Software Services
 
Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingHarish Ganesan
 
Operational Excellence
Operational ExcellenceOperational Excellence
Operational ExcellenceKamraan
 
Architecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureArchitecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureNuno Godinho
 
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014Amazon Web Services
 
Metrics For Agile @CSI SPIN Mumbai Mar2011
Metrics For Agile @CSI SPIN Mumbai Mar2011Metrics For Agile @CSI SPIN Mumbai Mar2011
Metrics For Agile @CSI SPIN Mumbai Mar2011Priyank Pathak
 
Top metrics for Agile by Priyank
Top metrics for Agile by PriyankTop metrics for Agile by Priyank
Top metrics for Agile by Priyankagilencr
 
SaaS, Multi-Tenancy and Cloud Computing
SaaS, Multi-Tenancy and Cloud ComputingSaaS, Multi-Tenancy and Cloud Computing
SaaS, Multi-Tenancy and Cloud ComputingRainer Stropek
 
Mining Large-Scale Temporal Dynamics with Hadoop
Mining Large-Scale Temporal Dynamics with HadoopMining Large-Scale Temporal Dynamics with Hadoop
Mining Large-Scale Temporal Dynamics with HadoopDataWorks Summit
 
Serverless on AWS : Understanding the hard parts at Froscon 2019
Serverless on AWS : Understanding the hard parts at Froscon 2019Serverless on AWS : Understanding the hard parts at Froscon 2019
Serverless on AWS : Understanding the hard parts at Froscon 2019Vadym Kazulkin
 
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudAmazon Web Services
 

Similaire à Auto scaling (20)

Scale New Business Peaks with Amazon AutoScaling - Harish Ganesan
Scale New Business Peaks with Amazon AutoScaling - Harish GanesanScale New Business Peaks with Amazon AutoScaling - Harish Ganesan
Scale New Business Peaks with Amazon AutoScaling - Harish Ganesan
 
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
Building Cost-Aware Cloud Architectures - Jinesh Varia (AWS) and Adrian Cockc...
 
Scale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scalingScale new business peaks with Amazon auto scaling
Scale new business peaks with Amazon auto scaling
 
Scaling data on public clouds
Scaling data on public cloudsScaling data on public clouds
Scaling data on public clouds
 
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
AWS Summit London 2014 | Improving Availability and Lowering Costs (300)
 
How to scale up, out or down in Windows Azure
How to scale up, out or down in Windows AzureHow to scale up, out or down in Windows Azure
How to scale up, out or down in Windows Azure
 
An Introduction To Space Based Architecture
An Introduction To Space Based ArchitectureAn Introduction To Space Based Architecture
An Introduction To Space Based Architecture
 
Lean Supply Chain Execution with Datacraft Solutions
Lean Supply Chain Execution with Datacraft SolutionsLean Supply Chain Execution with Datacraft Solutions
Lean Supply Chain Execution with Datacraft Solutions
 
Preparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgivingPreparing your IT infrastructure for thanksgiving
Preparing your IT infrastructure for thanksgiving
 
Prepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for ThanksgivingPrepare your IT Infrastructure for Thanksgiving
Prepare your IT Infrastructure for Thanksgiving
 
Operational Excellence
Operational ExcellenceOperational Excellence
Operational Excellence
 
Analytics in the Cloud
Analytics in the CloudAnalytics in the Cloud
Analytics in the Cloud
 
Architecture Best Practices on Windows Azure
Architecture Best Practices on Windows AzureArchitecture Best Practices on Windows Azure
Architecture Best Practices on Windows Azure
 
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014
(ENT301) Understanding Total Cost of Ownership on AWS | AWS re:Invent 2014
 
Metrics For Agile @CSI SPIN Mumbai Mar2011
Metrics For Agile @CSI SPIN Mumbai Mar2011Metrics For Agile @CSI SPIN Mumbai Mar2011
Metrics For Agile @CSI SPIN Mumbai Mar2011
 
Top metrics for Agile by Priyank
Top metrics for Agile by PriyankTop metrics for Agile by Priyank
Top metrics for Agile by Priyank
 
SaaS, Multi-Tenancy and Cloud Computing
SaaS, Multi-Tenancy and Cloud ComputingSaaS, Multi-Tenancy and Cloud Computing
SaaS, Multi-Tenancy and Cloud Computing
 
Mining Large-Scale Temporal Dynamics with Hadoop
Mining Large-Scale Temporal Dynamics with HadoopMining Large-Scale Temporal Dynamics with Hadoop
Mining Large-Scale Temporal Dynamics with Hadoop
 
Serverless on AWS : Understanding the hard parts at Froscon 2019
Serverless on AWS : Understanding the hard parts at Froscon 2019Serverless on AWS : Understanding the hard parts at Froscon 2019
Serverless on AWS : Understanding the hard parts at Froscon 2019
 
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the CloudTop 5 Ways to Optimize for Cost Efficiency with the Cloud
Top 5 Ways to Optimize for Cost Efficiency with the Cloud
 

Plus de Akash Agrawal

Plus de Akash Agrawal (15)

2
22
2
 
10 slides with notes
10 slides with notes10 slides with notes
10 slides with notes
 
Leadership Lessons Learnt
Leadership Lessons LearntLeadership Lessons Learnt
Leadership Lessons Learnt
 
AWS Cost Cheat Sheet
AWS Cost Cheat SheetAWS Cost Cheat Sheet
AWS Cost Cheat Sheet
 
VIM for Programmers
VIM for ProgrammersVIM for Programmers
VIM for Programmers
 
Cloud computing @ slideshare
Cloud computing @ slideshareCloud computing @ slideshare
Cloud computing @ slideshare
 
Expenditure For Anna Hazare Movement
Expenditure For Anna Hazare MovementExpenditure For Anna Hazare Movement
Expenditure For Anna Hazare Movement
 
Donation For Anna Hazare Movement in 2010 12
Donation For Anna Hazare Movement in 2010 12Donation For Anna Hazare Movement in 2010 12
Donation For Anna Hazare Movement in 2010 12
 
Avid tv watcher
Avid tv watcherAvid tv watcher
Avid tv watcher
 
Call Forwarding
Call ForwardingCall Forwarding
Call Forwarding
 
Work Culture
Work CultureWork Culture
Work Culture
 
HUM-TUM
HUM-TUMHUM-TUM
HUM-TUM
 
Day13-Akash
Day13-AkashDay13-Akash
Day13-Akash
 
Day12 - Akash
Day12 - AkashDay12 - Akash
Day12 - Akash
 
ALEKH
ALEKHALEKH
ALEKH
 

Dernier

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 

Dernier (20)

Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 

Auto scaling

  • 1. Auto  Scaling   Amazon  EC2   Akash  Agrawal  
  • 2. What  is  Auto  Scaling?   •  Make  your  compu=ng  power  pure  ELASTIC.   •  Increase  or  Decrease  Compu=ng  Power  as   your  applica=on  DEMAND.   – If  Demand   Compu=ng  " – If  Demand   Compu=ng  "
  • 3. Infrastructure     Cost   Predicted  demand   Time  
  • 4. Infrastructure     Cost   Predicted  demand   Actual  Demand   Time  
  • 5. Infrastructure     Cost   High  Capital   Expenditure   You  just  lost   your  customer   Predicted  demand   Actual  Demand   Scale-­‐up  approach   Time  
  • 6. Infrastructure     Cost   Too  much  excess   Capacity   High  Capital   Expenditure   You  just  lost   your  customer   Predicted  demand   Actual  Demand   Scale-­‐up  approach   Tradi=onal  Scale-­‐out   approach   Time  
  • 7. Infrastructure     Cost   Too  much  excess   Capacity   High  Capital   Expenditure   You  just  lost   your  customer   Predicted  demand   Actual  Demand   Scale-­‐up  approach   Tradi=onal  Scale-­‐out   approach   Automated  Elas=city   Time  
  • 8. Why  ?   •  Get  rid  of  preemp=on.   •  No  need  to  worry  for  cost  of  stale  hardware.   •  No  worries  of  being  short  than  demand.   •  Cost  of  hardware  is  propor=onal  to  demand.  
  • 9. What’s  in  Store  ?   •  No  Extra  charge  (if  you  have  already  enabled   Cloud  Watch)   •  Also  help  in  maintaining  EC2  fleet  at  fixed  Size.   •  Mul=ple  proper=es  (metrics)  to  configure.   – Can  club  proper=es  as  well.  
  • 10. Auto  Scaling  APIs     •   as-­‐create-­‐auto-­‐scaling-­‐group   –   Create  a  new  auto  scaling  group  with  specified  name  and  other  aTributes   •  as-­‐create-­‐launch-­‐config   –  Create  a  new  launch  config  with  specified  aTributes.   •  as-­‐create-­‐or-­‐update-­‐trigger   –  Creates  a  new  trigger  or  updates  an  exis=ng  trigger.   •  as-­‐delete-­‐auto-­‐scaling-­‐group   –  Delete  the  specified  auto  scaling  group  if  the  group  has  no  instances  and  no  scaling  ac=vi=es  in  progress.   •  as-­‐delete-­‐launch-­‐config   –  Delete  the  specified  launch  configura=on.   •  as-­‐delete-­‐trigger   –  Delete  a  trigger.   •  as-­‐describe-­‐auto-­‐scaling-­‐groups   –  Describes  the  specified  auto  scaling  group(s)  if  the  group(s)  exists.  
  • 11. Auto  Scaling  APIs     •  as-­‐describe-­‐launch-­‐configs   –  Describe  the  specified  launch  configura=ons  if  they  exist.   •  as-­‐describe-­‐scaling-­‐ac=vi=es   –  Describe  a  set  of  ac=vi=es  or  all  ac=vi=es  belonging  to  a  group,  describing  at  most  max-­‐ac=vi=es  at  a  =me.   •  as-­‐describe-­‐triggers   –  Describes  a  trigger  including  its  internal  state.   •  as-­‐set-­‐desired-­‐capacity   –  Set  the  desired  capacity  of  the  specified  auto  scaling  group  (within  the  range  of  group's  minimum  and   maximum  size).   •  as-­‐terminate-­‐instance-­‐in-­‐auto-­‐scaling-­‐group   –  Terminate  a  given  instance  with/without  reducing  the  group's  capacity.   •  as-­‐update-­‐auto-­‐scaling-­‐group   –  Update  specified  auto  scaling  group  with  aTributes   •  as-­‐version  
  • 12.  as-­‐create-­‐auto-­‐scaling-­‐group    as-­‐create-­‐auto-­‐scaling-­‐group     AutoScalingGroupName    -­‐-­‐availability-­‐zones    value[,value...]  -­‐-­‐launch-­‐configura=on    value    -­‐-­‐max-­‐size   value    -­‐-­‐min-­‐size    value  [-­‐-­‐cooldown    value  ]  [-­‐-­‐load-­‐balancers    value[,value...]  ]  [General  Op=ons]   Example:   Create  group  'test-­‐group-­‐1'  with  required  parameters  (will  have  1  instance  launched   with  config  'test-­‐config-­‐1')   as-­‐create-­‐auto-­‐scaling-­‐group  test-­‐group-­‐1  -­‐-­‐launch-­‐configura=on  test-­‐config-­‐1  -­‐-­‐availability-­‐zones  us-­‐ east-­‐1a  -­‐-­‐min-­‐size  1  -­‐-­‐max-­‐size  1  
  • 13. as-­‐create-­‐launch-­‐config   as-­‐create-­‐launch-­‐config   LaunchConfigura=onName    -­‐-­‐image-­‐id    value    -­‐-­‐instance-­‐type    value  [-­‐-­‐block-­‐device-­‐mapping     "key1=value1,key2=value2..."  ]  [-­‐-­‐kernel    value]  [-­‐-­‐key    value  ]  [-­‐-­‐ramdisk    value  ]  [-­‐-­‐group    value[,value...]  ]   [-­‐-­‐user-­‐data    value  ]  [-­‐-­‐user-­‐data-­‐file    value  ]    [General  Op=ons]   Example:   Create  a  launch  configura=on  with  name  ’testlc'  to  launch  'm1.small'  type  instances   with  imageId  'ami-­‐f7c5219e'.   as-­‐create-­‐launch-­‐config  testlc  -­‐-­‐image-­‐id  ami-­‐f7c5219e  -­‐-­‐instance-­‐type  m1.small    
  • 14. as-­‐create-­‐or-­‐update-­‐trigger   as-­‐create-­‐or-­‐update-­‐trigger                    TriggerName    -­‐-­‐auto-­‐scaling-­‐group    value    -­‐-­‐breach-­‐dura=on    value  -­‐-­‐dimensions     "key1=value1,key2=value2..."    -­‐-­‐lower-­‐breach-­‐increment  value    -­‐-­‐lower-­‐threshold    value    -­‐-­‐measure    value     -­‐-­‐period    value  -­‐-­‐sta=s=c    value    -­‐-­‐upper-­‐breach-­‐increment    value    -­‐-­‐upper-­‐threshold  value  [-­‐-­‐namespace     value  ]  [-­‐-­‐unit    value  ]    [General  Op=ons]   Example:   Create  a  trigger  with  a  minimal  set  of  parameters.   as-­‐create-­‐or-­‐update-­‐trigger    test-­‐trigger  -­‐-­‐auto-­‐scaling-­‐group  test-­‐group  -­‐-­‐namespace  "AWS/EC2"  -­‐-­‐ measure  CPUU=liza=on  -­‐-­‐sta=s=c  Average  -­‐-­‐dimensions  "AutoScalingGroupName=test-­‐group"  -­‐-­‐period  60   -­‐-­‐lower-­‐threshold  20  -­‐-­‐upper-­‐threshold  80  -­‐-­‐lower-­‐breach-­‐increment=-­‐1  -­‐-­‐upper-­‐breach-­‐increment  1  -­‐-­‐ breach-­‐dura*on  120  
  • 15. as-­‐create-­‐or-­‐update-­‐trigger   as-­‐create-­‐or-­‐update-­‐trigger                    TriggerName    -­‐-­‐auto-­‐scaling-­‐group    value    -­‐-­‐breach-­‐dura=on    value  -­‐-­‐dimensions     "key1=value1,key2=value2..."    -­‐-­‐lower-­‐breach-­‐increment  value    -­‐-­‐lower-­‐threshold    value    -­‐-­‐measure    value     -­‐-­‐period    value  -­‐-­‐sta=s=c    value    -­‐-­‐upper-­‐breach-­‐increment    value    -­‐-­‐upper-­‐threshold  value  [-­‐-­‐namespace     value  ]  [-­‐-­‐unit    value  ]    [General  Op=ons]   Example:   Create  a  trigger  with  a  minimal  set  of  parameters.   as-­‐create-­‐or-­‐update-­‐trigger    test-­‐trigger  -­‐-­‐auto-­‐scaling-­‐group  test-­‐group  -­‐-­‐namespace  "AWS/EC2"  -­‐-­‐ measure  CPUU=liza=on  -­‐-­‐sta=s=c  Average  -­‐-­‐dimensions  "AutoScalingGroupName=test-­‐group"  -­‐-­‐period  60   -­‐-­‐lower-­‐threshold  20  -­‐-­‐upper-­‐threshold  80  -­‐-­‐lower-­‐breach-­‐increment=-­‐1  -­‐-­‐upper-­‐breach-­‐increment  1  -­‐-­‐ breach-­‐dura*on  120  
  • 16. Why  Auto  Scaling  Rocks?     •  Make  Sure  that  your  applica=on  is  able  to   balance  load  Autonomously.   •  No  humans  are  monitoring.   •  It  checks  an  awful  lot  of  data  points  every   minute  or  so…   – oh,  we  have  idle  CPU,  let’s  kill  some  instances.  
  • 17. Why  Auto  Scaling  Sucks?     •  It  takes  some  =me  for  your  EC2  instances  to   launch  =>  LATENCY   •  Why  Pay  extra  for  Cloud  Watch  (if  you  don’t  use)   Almost  all  capacity  changes  are  foreseeable.  If  you  had   done  proper  capacity  planning.   •  Spikes   •  Malicious  traffic  
  • 18. Do  you  actually  need  it  ?   •  Can  you  map  your  traffic  with  machine  proper=es  ?   •  Do  you  properly  know  your  metrics  to  be  monitored  ?   •  Do  you  think  that  auto  scaling  fire-­‐up  and  shut-­‐down   instances  in  =me  ?   •  Do  you  actually  worry  about  delays  and  other   parameters  ?  (what  does  your  applica=on  does)