Auto Scaling Guided by Code
Upcoming SlideShare
Loading in...5
×
 

Auto Scaling Guided by Code

on

  • 410 views

 

Statistics

Views

Total Views
410
Views on SlideShare
409
Embed Views
1

Actions

Likes
0
Downloads
6
Comments
0

1 Embed 1

https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Auto Scaling Guided by Code Auto Scaling Guided by Code Presentation Transcript

  • Auto Scaling Guided by Code Pablo Cantero @pablocantero http://pablocantero.com 19/09/2012
  • Cloud Computing• Pay-as-you-go• Scale Resources up or down based on demand (Elastic Architecture) http://aws.amazon.com/
  • Auto Scaling steps
  • Instance provisioning• Manually • Image (preconfigured)• Automated • Chef • Puppet • CloudFormation http://aws.amazon.com/
  • Create a launch configuration. The launch configuration are parameters to launchinstances, such as image (AMI), instance type, security group, key pair and user data.
  • Create an auto scaling group. The auto scaling group defines the auto scaling conditions,minimum and maximum number of instances, available zones, default cool down and load balancer (ELB).
  • Create a scaling policy. The scaling policydefines how the auto scaling should scale up or down, if it is by size or percent and the cool down.
  • Create an alarm metric. The alarm metric is the metric used to decide when to increase ordecrease the instances. Usually by response time. The metrics are provided by CloudWatch.
  • Alarm metrics
  • Create an alarm request. It is the last step to setup the Auto Scaling. The alarm requestdefines how to measure the metrics defined by the alarm metric, for example the time and period to evaluate the metric.
  • Talk is cheap. Show me the code.
  • Some advices
  • Don’t name your instancesYou should change your instances as you change your underwear. Lucas Teixeira
  • Don’t forget to remove your tests
  • Use Auto Scaling, avoid Cloud Smellshttp://pablocantero.com/blog/2012/09/07/use-auto-scaling- avoid-cloud-smells/
  • Thank you Pablo Cantero @pablocanterohttp://pablocantero.com