Interface Endpoint | Gateway Endpoint | |
---|---|---|
What | Elastic Network Interface with a Private IP | A gateway that is target for a specific route |
How | Uses DNS entries to redirect traffic | Uses prefix lists in the route table to redirect traffic |
Which services | API Gateway, CouldFormation, CloudWatch, etc. | Amazon S3, DynamoDB |
Security | Security Groups | VPC Endpoint Policies |
Auto Scaling
Scaling | What it is | When to use |
---|---|---|
Maintain | Ensures the required number of instances are running | Use when you always need a number of instances running at all times |
Manual | Manually change desired capacity via the console or CLI | Use when your needs change rarely enough that you are ok to make manual changes |
Scheduled | Adjust min/max instances on specific dates/times or recurring time period | Use when you know when your busy and quiet times are. Useful for ensuring enough instances are available before very busy times |
Dynamic | Scale in response to system load or other trigger using metrics | Useful for changing capacity based on system utilization, e.g, CPU hits 80% |
Policy
Scaling Policy | What it is | When to use |
---|---|---|
Target Tracking Policy | The scaling policy adds or removes capacity as required to keep the metric at, or close to, the specific target value | A use case is that you want to keep the aggregate CPU usage of your ASG at 70% |
Simple Scaling Policy | Waits until health check and cool down period expires before re-evaluating | This is a more conservative way to add/remove instances. Useful when load is erratic. AWS recommend step scailing instead of simple in most cases. |
Step Scaling Policy | Increase or decrease the current capacity of your ASG based on a set of scaling adjustments, known as step adjustments | Useful when you want to vary adjustments based on the size of the alarm breach |