gpt4 book ai didi

amazon-web-services - Amazon DynamoDB 吞吐量是如何计算和限制的?

转载 作者:行者123 更新时间:2023-12-04 08:00:32 26 4
gpt4 key购买 nike

它是每秒平均吗?每分钟?每小时?

例如..如果我支付 10 个“读取单元”的费用,允许每秒 10 次高度一致的读取,如果我尝试在一秒钟内进行 20 次读取,我是否会受到限制,即使这是发生在最后一个小时?亚马逊文档和常见问题解答在我能找到的任何地方都没有回答这个关键问题。

我在 FAQ 中找到的唯一相关回复完全忽略了如何计算使用量以及何时可能发生节流的问题:

Q: What happens if my application performs more reads or writes than my provisioned capacity?

A: If your application performs more reads/second or writes/second than your table’s provisioned throughput capacity allows, requests above your provisioned capacity will be throttled and you will receive 400 error codes. For instance, if you had asked for 1,000 write capacity units and try to do 1,500 writes/second of 1 KB items, DynamoDB will only allow 1,000 writes/second to go through and you will receive error code 400 on your extra requests. You should use CloudWatch to monitor your request rate to ensure that you always have enough provisioned throughput to achieve the request rate that you need.

最佳答案

DynamoDB 提供“突发容量”,允许从表中读取的数据量激增。您可以在以下位置阅读更多相关信息:http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html#GuidelinesForTables.Bursting

基本上这就是@abjennings 注意到的 - 它使用 5 分钟的窗口来平均从表中读取的次数。

关于amazon-web-services - Amazon DynamoDB 吞吐量是如何计算和限制的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9423170/

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