gpt4 book ai didi

amazon-dynamodb - 如何计算 DynamoDB 的读取容量单位和写入容量单位

转载 作者:行者123 更新时间:2023-12-03 07:34:54 24 4
gpt4 key购买 nike

如何计算 RCU 和 WCU,数据为:读取吞吐量 32 GB/s,写入吞吐量 16 GB/s。

最佳答案

DynamoDB Provisioned Throughput基于一定的单元大小和写入的项目数量:

In DynamoDB, you specify provisioned throughput requirements in terms of capacity units. Use the following guidelines to determine your provisioned throughput:

  • One read capacity unit represents one strongly consistent read per second, or two eventually consistent reads per second, for items up to 4 KB in size. If you need to read an item that is larger than 4 KB, DynamoDB will need to consume additional read capacity units. The total number of read capacity units required depends on the item size, and whether you want an eventually consistent or strongly consistent read.
  • One write capacity unit represents one write per second for items up to 1 KB in size. If you need to write an item that is larger than 1 KB, DynamoDB will need to consume additional write capacity units. The total number of write capacity units required depends on the item size.

因此,在确定所需容量时,您需要知道每秒希望读取和写入的项目数量,以及这些项目的大小

您不应该寻求特定的 GB/s,而应该寻求每秒您希望读取/写入的给定数量的项目。这是您的应用程序满足操作性能所需的功能。

还有一些DynamoDB limits这将适用,但可以根据要求进行更改:

  • US East (N. Virginia) Region:
  • 每个表 – 40,000 个读取容量单位和 40,000 个写入容量单位
  • 每个帐户 – 80,000 个读取容量单位和 80,000 个写入容量单位
  • 所有其他地区:
  • 每个表 – 10,000 个读取容量单位和 10,000 个写入容量单位
  • 每个帐户 – 20,000 个读取容量单位和 20,000 个写入容量单位

40,000 个读取容量单位 x 4KB x 2(最终一致)= 320MB/s

如果我的计算正确,您的要求是此数量的 100 倍,因此 DynamoDB 似乎不是适合如此高吞吐量的解决方案。

您的速度正确吗?

接下来的问题是如何每秒生成如此多的数据。全双工 10GFC 光纤的运行速度为 2550MB/s,因此,如果数据要进出 AWS 云,您将需要多个光纤连接来传输此类数据。

即使 10Gb 以太网也只能提供 10Gbit/s,因此传输 32GB 需要 28 秒——也就是传输一秒的数据!

底线:您的数据要求非常高。你确定它们是现实的吗?

关于amazon-dynamodb - 如何计算 DynamoDB 的读取容量单位和写入容量单位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42494900/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com