- Newest
- Most votes
- Most comments
AWS Auto Scaling Groups (ASG) support two main types of scaling:
-
Vertical Scaling (Up/Down): This type of scaling involves increasing or decreasing the capacity of a single resource. For example, you can upgrade an EC2 instance to a more powerful type with more CPU, memory, or storage. Vertical scaling is supported for services like Amazon EC2, where you can resize instances, and Amazon RDS, where you can modify instance types to meet demand.
-
Horizontal Scaling (Out/In): Horizontal scaling involves adding or removing multiple instances of a resource to distribute the load. This is the primary focus of Auto Scaling Groups. With horizontal scaling, you can automatically adjust the number of EC2 instances in response to changes in demand. This type of scaling is also supported for containerized applications using services like Amazon ECS and EKS.
In addition to these basic types, AWS Auto Scaling offers several features to enhance your scaling capabilities:
-
Dynamic Scaling: This allows you to scale based on Amazon CloudWatch metrics, automatically adjusting capacity in response to real-time changes in resource utilization.
-
Scheduled Scaling: You can set up scaling actions to occur at specific times, which is useful for predictable traffic patterns.
-
Predictive Scaling: This feature uses machine learning to forecast traffic and proactively adjust capacity before anticipated demand spikes.
To effectively implement these scaling types, consider best practices such as:
- Enabling detailed monitoring for one-minute intervals
- Enabling Auto Scaling group metrics to measure and forecast application usage
- Verifying your application's instance type when using auto scaling
- Setting up alarms and notifications to stay informed about scaling events
By leveraging these scaling types and features, you can ensure your applications remain performant and cost-efficient while handling varying loads.
Sources
Scaling Applications on AWS | AWS re:Post
AWS Auto Scaling Features
Amazon EC2 Auto Scaling Features
Relevant content
asked 2 years ago
