知识卡片
分片决定请求的去向
分片把逻辑数据划成由不同副本组管理的范围,读取和写入按路由键发给责任组。范围大小既要看数据量,也要看访问负载。切换归属需要先搬运并校验数据,再更新路由元数据,否则请求可能先到新位置而数据仍在旧位置。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 分片路由与扩缩容
原书出处 · 1 处
- Chapter 13. Distributed Transactions 分片路由与扩缩容 · 查看原书依据
The most straightforward way to partition data is by splitting it into ranges and allowing replica sets to manage only specific ranges (partitions). When executing queries, clients (or query coordinators) have to route requests based on the routing key to the correct replica set for both reads and
参考来源
- 位置:《Database Internals》Chapter 13. Distributed Transactions(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch13.html#database_partitioning,段 97)
- 结论依据:原文用路由键定位副本组,说明热点切分、数据密度以及迁移和更新元数据的顺序。
- 原始内容:The most straightforward way to partition data is by splitting it into ranges and allowing replica sets to manage only specific ranges (partitions). When executing queries, clients (or query coordinators) have to route requests based on the routing key to the correct replica set for both reads and