- 快召唤伙伴们来围观吧
- 微博 QQ QQ空间 贴吧
- 文档嵌入链接
- 复制
- 微信扫一扫分享
- 已成功复制到剪贴板
MongoDB Sharding 101
本教程是DBA高级主题的延续。在本文中,我们将分享如何执行最常见活动的最佳实践和技巧。在本教程中,我们将介绍MongoDB切分。
展开查看详情
1 .
2 .
3 .● ● ● ● ●
4 .● ● ●
5 .● ●
6 .● ● ● ●
7 . PRIMARY Secondary Secondary
8 .Secondaries - Pull oplog and apply locally
9 .● ● ● ● ●
10 . Chained replication Secondaries - Pull oplog and apply locally
11 .Delayed Secondary Secondaries - Pull oplog and apply locally
12 .
13 .
14 .●
15 .
16 .
17 . Config Servers mongos Shard1 Shard2
18 .
19 . shard1 shard2 A database can have multiple collections, each collection can be sharded differently. Each shard has chunks and their documents.
20 .
21 .● ● ●
22 .
23 .
24 .
25 .
26 .
27 .
28 . Config Servers mongos Shard1 Shard2
29 .● ● ● ● ●