Amazon DynamoDB 吞吐量是如何计算和限制的? [英] How is Amazon DynamoDB throughput calculated and limited?

查看:23
本文介绍了Amazon DynamoDB 吞吐量是如何计算和限制的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Is it averaged per second? Per minute? Per hour?

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

For example.. if I pay for 10 "read units" which allows for 10 highly consistent reads per second, will I be throttled if I try to do 20 reads in a single second, even if it was the only 20 reads that occurred in the last hour? The Amazon documentation and FAQ do not answer this critical question anywhere that I could find.

我可以在常见问题解答中找到的唯一相关回复完全忽略了如何计算使用量以及何时可能发生限制的问题:

The only related response I could find in the FAQ completely ignores the issue of how usage is calculated and when throttling may happen:

问:如果我的应用程序执行的读取或写入次数多于我的预置容量?

答:如果您的应用程序执行更多读取/秒或写入/秒比您的表的预置吞吐量容量允许,超出您预置容量的请求将是节流,您将收到 400 个错误代码.例如,如果你曾要求 1,000 个写入容量单位并尝试执行 1,500 个每秒写入 1 KB 项目,DynamoDB 将只允许 1,000写入/秒通过,您将收到错误代码 400您的额外要求.您应该使用 CloudWatch 来监控您的请求率以确保您始终有足够的预置吞吐量达到您需要的请求率.

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

The DynamoDB provides 'Burst Capacity' which allows for spikes in amount of data read from table. You can read more about it under: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html#GuidelinesForTables.Bursting

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

Basically it's what @abjennings noticed - It uses 5min window to average number of reads from a table.

这篇关于Amazon DynamoDB 吞吐量是如何计算和限制的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆