英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论