DynamoDB Auto Scaling automatically scales up or down provisioned read and write capacity of a DynamoDB table or a global secondary index, as application requests increase or decrease.
There are no additional cost to using Auto Scaling, beyond what you already pay for DynamoDB and CloudWatch alarms.
Auto Scaling Benefits:
-
Eliminates the guesswork involved in provisioning adequate capacity when creating new tables
-
Reduces the operational burden of continuously monitoring consumed throughput
-
helps ensure application availability and reduces costs from unused provisioned capacity.
Enable / Disable Auto scaling
-
When you create a new table, leave the 'Use default settings' option checked to enable it.
-
If you uncheck 'Use default settings', you can either set provisioned capacity manually or enable Auto Scaling with custom values for target utilization and minimum and maximum capacity.
-
The default value for Target Utilization is 70% (allowed range is 20% - 80% in one percent increments), minimum capacity is 1 unit and maximum capacity is the table limit for your account in the region.
-
-
For existing tables, you can change existing Auto Scaling settings in the 'Capacity' tab, and for indexes, under the 'Indexes' tab.
-
Auto Scaling can also be programmatically managed using CLI or AWS SDK.
Auto scaling Limitations
-
Auto Scaling policy can only be set to a single table or a global secondary indexes within a single region. Cannot enable a single Auto Scaling policy across multiple tables in multiple regions.
-
Cannot force an Auto Scaling policy to scale up to maximum capacity or scale down to minimum capacity instantly. Instead, you can temporarily disable Auto Scaling, set desired capacity for required duration, and re-enable Auto Scaling later.
Important Notes on Autoscaling (Exam Tips)
-
When you create an Auto Scaling policy for a table, CloudWatch alarms are created with thresholds for target utilization.
-
If actual utilization deviates, the CloudWatch alarms activates Auto Scaling, which uses UpdateTable API to increase (or decrease) the table's provisioned throughput.
-
Can monitor status of scaling actions triggered by Auto Scaling in the management console and from CloudWatch graphs (under the 'Metrics' tab).
-
Auto Scaling works with reserved capacity in the same manner as manually provisioned throughput. Reserved Capacity is applied to the total provisioned capacity for the region.
-
Capacity provisioned by Auto Scaling will consume the reserved capacity first, billed at discounted prices, and any excess capacity will be charged at standard rates. To limit total consumption to the reserved capacity, distribute maximum capacity limit across all tables with Auto Scaling enabled.
- heartin's blog
- Log in or register to post comments

Recent comments