- Ansible 2 Cloud Automation Cookbook
- Aditya Patawari Vikas Aggarwal
- 231字
- 2021-06-24 18:43:39
Creating auto scaling groups
So far, we have seen various services provided by AWS EC2. We have also seen the dynamic nature of the cloud that lets us spin any number of instances, volumes, load balancers, and so on.
When we deploy an application in production, we are likely to see non-uniform traffic patterns.
We might see a pattern where peak time starts at mid-afternoon and ends at midnight. For such cases, we might need to add more resources at certain times to keep our application latency uniform. Using auto scaling groups, we can achieve this goal. AWS EC2 provides three major components for auto scaling EC2 instances:
- Launch Configurations act a template for auto scaling groups to launch EC2 instances. It contains information like the AMI ID, the security group, and so on required to launch an EC2 instance.
- Auto Scaling Groups is a collection of EC2 instances which share similar characteristics. This is defined in the launch configuration. Auto scaling groups are configured with parameters such as a maximum number of instances, a minimum number of instances, scaling policies, and load balancers to manage EC2 instances.
- Scaling Group Policies are policies attached to an auto scaling group, which define actions like scale up or scale down. These policies are hooked with CloudWatch metrics alarm, which notifies the policy to increase or decrease EC2 instances in auto scaling groups.
推薦閱讀
- 虛擬儀器設計測控應用典型實例
- AWS:Security Best Practices on AWS
- 程序設計缺陷分析與實踐
- 自動檢測與傳感技術
- Google App Inventor
- Expert AWS Development
- JSF2和RichFaces4使用指南
- Google SketchUp for Game Design:Beginner's Guide
- 基于企業網站的顧客感知服務質量評價理論模型與實證研究
- Visual C++項目開發案例精粹
- SMS 2003部署與操作深入指南
- C++程序設計基礎(上)
- MATLAB-Simulink系統仿真超級學習手冊
- 玩機器人 學單片機
- ASP.NET 4.0 MVC敏捷開發給力起飛