DynamoDB 自适应扩展如何重新平衡分区?

huangapple go评论56阅读模式
英文:

How does DynamoDB adaptive scaling rebalance partitions?

问题

在DynamoDB文档中,写道:

> 如果您的应用程序向一个或多个项目驱动了不成比例的高流量,自适应容量会重新平衡您的分区,以使经常访问的项目不驻留在同一分区。

我的问题是:

“重新平衡”究竟是什么意思?

一些项目是否会被复制到新的分区并从原始分区中移除?

这个过程会影响性能吗?

需要多长时间?

英文:

In the DynamoDB doc, it is written:

> If your application drives disproportionately high traffic to one or
> more items, adaptive capacity rebalances your partitions such that
> frequently accessed items don't reside on the same partition.

My question is:

what exactly is meant by “rebalance” ?

Are some items copied to a new partition and removed from the original one ?

Does this process impact performance?

How long does it take ?

答案1

得分: 2

物品被分割成了两个新的分区。分割会在数据库确定已经有足够的持续流量呈现出分散模式时启动,然后分割本身需要几分钟的时间。在对按需表进行测试时(我创建了合成的持续流量),我看到吞吐量会翻倍,然后每隔约15分钟再次翻倍。

英文:

Items are split across two new partitions. The split initiates when the database decides there's been enough sustained traffic in a spread pattern where a split would be beneficial, and then the split itself takes a few minutes. In testing with on-demand tables (where I created synthetic sustained traffic) I've seen the throughput double and then double again, repeating about every 15 minutes.

huangapple
  • 本文由 发表于 2023年1月9日 04:42:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75051134.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定