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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南