HA ASGs Flashcards
What are the 3 ASG components?
- Groups - Logical component. Webserver group or Application group, DB group, etc.
- Configuration Templates - Group uses a launch template or launch config as a config template for it’s EC2 instances. You can specify info such as AMI ID, Instance Type, Key Pair, Security Groups, and Block Device mapping for your instances.
- Scaling Options - provide several ways for you to scale your ASGs. For example, you can config a group to scale based on the occurrences of specified conditions (dynamic scaling) or on a schedule.
What are the elements of an ASG Configuration Template?
You can specify info such…
- AMI ID
- Instance Type
- Key Pair
- Security Groups
- Block Device mapping for your instances
Name the 5 scaling options.
- Maintain current instance levels at all times
- Scale manually
- Scale based on schedule
- Scale based on demand
- Predictive Scaling
Describe the scaling option… Maintain current instance levels at all times
You can configure your Auto Scaling group to maintain a specified number of running instances at all times. To maintain the current instance levels, Amazon EC2 Auto Scaling performs a periodic health check on running instances within an Auto Scaling group. When Amazon EC2 Auto Scaling finds an unhealthy instance, it terminates that instance and launches a new one.
Describe the scaling option… Scale manually
Manual scaling is the most basic way to scale your resources, where you specify only the change in the maximum, minimum, or desired capacity of your Auto Scaling group. Amazon EC2 Auto Scaling manages the process of creating or terminating instances to maintain the updated capacity.
Describe the scaling option… Scale based on schedule
Scaling by schedule means that scaling actions are performed automatically as a function of time and date. This is useful when you know exactly when to increase or decrease the number of instances in your group, simply because the need arises on a predictable schedule.
Describe the scaling option… Scale based on demand
A more advanced way to scale your resources, using scaling policies, lets you define parameters that control the scaling process. For example, let’s say that you have a web application that currently runs on two instances and you want the CPU utilization of the Auto Scaling group to stay at around 50 percent when the load on the application changes. This method is useful for scaling in response to changing conditions, when you don’t know when those conditions will change. You can set up Amazon EC2 Auto Scaling to respond for you.
Describe the scaling option… Scale using Predictive scaling
You can also use Amazon EC2 Auto Scaling in combination with AWS Auto Scaling to scale resources across multiple services. AWS Auto Scaling can help you maintain optimal availability and performance by combining predictive scaling and dynamic scaling (proactive and reactive approaches, respectively) to scale your Amazon EC2 capacity faster.