Reputation: 1788
I have created a DynamoDB table with capacity mode On-demand
.
I am performing a few queries on the global secondary index of the table which give me errors:
An error occurred (ThrottlingException) when calling the Query operation (reached max retries: 2): Throughput exceeds the current capacity for one or more global secondary indexes. DynamoDB is automatically scaling your index so please try again shortly
My request is failed which is OK but how can I confirm if my table's capacity RCU/WCU increased or not? I am not able to see anything in cloud watch as well.
Upvotes: 0
Views: 693
Reputation: 25769
Capacity is opaque in the pay-per-use On-Demand mode. On-Demand mode meters throughput with Request Units (WRU/RRU), which are measured the same as the equivalent Capacity Units (WCU/RCU) of the pay-per-hour Provisioned Throughput mode, for which the provisioned table capacity is visible (e.g. using the describe-table
API).
On-Demand mode scales behind the scenes based on previous peak traffic, allocating 2x previous peak traffic. Throttling should only occur if traffic increases more than double the peak within 30 minutes:
If you need more than double your previous peak on table, DynamoDB automatically allocates more capacity as your traffic volume increases to help ensure that your workload does not experience throttling. However, throttling can occur if you exceed double your previous peak within 30 minutes.
Upvotes: 1