DynamoDB Replicated Write Request Units

0

We have a global table enabled on 2 regions. For the last 17 days cost explorer shows the following stats.

On the first region (main region): 575.000 WriteRequestUnits 612,000,000.000 ReplicatedWriteRequestUnits

On the second region(used as fallback) 0 WriteRequestUnits 180,000,000.000 ReplicatedWriteRequestUnits

How is that even possible? Point-in-time recovery Backup is enabled but still the write changes are minimal.

  • Do you have TTL enabled on the tables?

  • Yes TTL is enabled. As per AWS documentation though:

    "Amazon DynamoDB Time to Live (TTL) allows you to define a per-item timestamp to determine when an item is no longer needed. Shortly after the date and time of the specified timestamp, DynamoDB deletes the item from your table without consuming any write throughput. TTL is provided at no extra cost as a means to reduce stored data volume by retaining only the items that remain current for your workload’s needs."

    Am I missing something?

  • Added as an answer

Taxidis
已提问 1 年前465 查看次数
2 回答
1
已接受的回答

Amazon DynamoDB Time to Live (TTL) allows you to define a per-item timestamp to determine when an item is no longer needed. Shortly after the date and time of the specified timestamp, DynamoDB deletes the item from your table without consuming any write throughput. TTL is provided at no extra cost as a means to reduce stored data volume by retaining only the items that remain current for your workload’s needs

For DynamoDB Global Tables, TTL items are deleted free of charge in the source region, and then that delete is replicated to all other regions. This is the reason you see an increased rWCU consumption for your tables.

More here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html

"If you are using Version 2019.11.21 (Current) of global tables and you also use the Time to Live feature, DynamoDB replicates TTL deletes to all replica tables. The initial TTL delete does not consume write capacity in the region in which the TTL expiry occurs. However, the replicated TTL delete to the replica table(s) consumes a replicated write capacity unit when using provisioned capacity, or replicated write when using on-demand capacity mode, in each of the replica regions and applicable charges will apply."

profile pictureAWS
专家
已回答 1 年前
0

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html

If you are using Version 2019.11.21 (Current) of global tables and you also use the Time to Live feature, DynamoDB replicates TTL deletes to all replica tables. The initial TTL delete does not consume write capacity in the region in which the TTL expiry occurs. However, the replicated TTL delete to the replica table(s) consumes a replicated write capacity unit when using provisioned capacity, or replicated write when using on-demand capacity mode, in each of the replica regions and applicable charges will apply.

AWS
Arjan
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则