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
질문됨 일 년 전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
전문가
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠