问题
Here are the parameters I have set on the table:
And here is what I see for the capacity over time.
Why is it remaining at 25 write units? Shouldn't it go down to 5 write units (the minimum set)?
回答1:
That's because of this note from AWS DynamoDB AutoScaling documentation:
Currently, Auto Scaling does not scale down your provisioned capacity if your table’s consumed capacity becomes zero. As a workaround, you can send requests to the table until Auto Scaling scales down to the minimum capacity, or change the policy to reduce the maximum provisioned capacity to be the same as the minimum provisioned capacity.
In your case, the consumed capacity went down to 0 between 8:00 to 10:00, so the provisioned capacity remained at 25.
回答2:
Auto Scaling for dynamo DB will now scale down your provisioned capacity if your table’s consumed capacity becomes zero. This eagerly awaited announcement was made on 8th Nov 2018. The official docs are yet to be updated.
Reference
I tested that it works:
来源:https://stackoverflow.com/questions/47910861/aws-dynamo-not-auto-scaling-back-down