Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kalinchernev/7ad03e8dc565642dec7d7de6b95d2045 to your computer and use it in GitHub Desktop.
Save kalinchernev/7ad03e8dc565642dec7d7de6b95d2045 to your computer and use it in GitHub Desktop.
Auto-scaling
ello,
Thank you for activating Amazon Web Service's Auto Scaling service. We would like to help you get started. We have put together a few resources that we think will be useful to you as you familiarize yourself with the Auto Scaling service.
We have a selection of resources on our web page to help get you started including blogs, tutorials, and videos:
http://aws.amazon.com/autoscaling/getting-started/
Auto Scaling helps you to manage the lifecycle of your EC2 instances by automating launches, software configuration, and replacement of impaired instances. Check out this blog post to learn more:
http://aws.amazon.com/blogs/compute/fleet-management-made-easy-with-auto-scaling/
Auto Scaling can also ensure that your provisioned capacity matches the load on your application by dynamically scaling your number of instances up and down. Capacity can be scaled on a schedule, or according to rules based on CloudWatch metrics.
Scaling on a schedule is the simplest form of dynamic scaling, and works best if your application has predictable load characteristics:
http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html
Scaling based on CloudWatch metrics is more flexible because it reacts dynamically to changes in application load. We recommend using Step Scaling policies when scaling based on CloudWatch metrics.
Introduction to Step Policies:
http://aws.amazon.com/blogs/aws/auto-scaling-update-new-scaling-policies-for-more-responsive-scaling/
Differences Between Dynamic Scaling Policies:
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-scale-based-on-demand.html
Here are some helpful tutorials to help you through the first steps of setting up Auto Scaling:
Creating your first Auto Scaling Group:
http://docs.aws.amazon.com/autoscaling/latest/userguide/GettingStartedTutorial.html
Planning your Auto Scaling Group:
http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html
Creating a Load Balanced Auto Scaling Group:
http://docs.aws.amazon.com/autoscaling/latest/userguide/as-register-lbs-with-asg.html
Here are some additional features of Auto Scaling that may help you with your deployment:
Auto Scaling can automatically replace instances that fail regular Health Checks:
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html
Lifecycle hooks give you control over what happens when Auto Scaling launches or terminates instances:
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/introducing-lifecycle-hooks.html
Here is a blog post that illustrates a practical application of lifecycle hooks:
http://aws.amazon.com/blogs/compute/building-a-backup-system-for-scaled-instances-using-aws-lambda-and-amazon-ec2-run-command/
Other actions such as attaching, detaching, and temporarily removing instances from Auto Scaling:
http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/WorkingWithASG.html
Finally, did you know that Auto Scaling works with more than just EC2 instances? This is called Application Auto Scaling, and you can learn more about it here:
http://docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/Welcome.html
These blog posts describe how Application Auto Scaling is used by various AWS services:
http://aws.amazon.com/blogs/compute/automatic-scaling-with-amazon-ecs/
http://aws.amazon.com/blogs/aws/new-auto-scaling-for-ec2-spot-fleets/
http://aws.amazon.com/blogs/aws/new-auto-scaling-for-emr-clusters/
We hope these resources will answer your questions and help you get started using Amazon Auto Scaling. If you have additional questions or concerns, please reach out to us on the AWS EC2 forum: https://forums.aws.amazon.com/forum.jspa?forumID=30
For Premium Support subscribers, please open a support case: https://console.aws.amazon.com/support/home?#/case/create
Regards,
The AWS Auto Scaling Team
Amazon Web Services, Inc. is a subsidiary of Amazon.com, Inc. Amazon.com is a registered trademark of Amazon.com, Inc. This message was produced and distributed by Amazon Web Services Inc., 410 Terry Ave. North, Seattle, WA 98109-5210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment