简体   繁体   English

MongoDB分片,复制和集群

[英]MongoDB Sharding, Replication and Clustering

Based on my analysis below is understanding, correct me if my understating is wrong. 根据下面的分析了解,如果我的低估是错误的,请纠正我。

Sharding - Horizontal scaling, split the records into multiple chunks and store across multiple machine with good shard key for all collections. 分片 -水平缩放,将记录分成多个块,并使用具有良好分片键的所有集合存储在多台计算机上。

Replication - Replicate the data across multiple machine for high availability 复制 -在多台计算机之间复制数据以实现高可用性

Clustering - As per Mongo architecture there will be one Master and multiple slave machine. 群集 -根据Mongo架构,将有一台主计算机和多台从计算机。 Write and sensitive read operation performs against Master and read operation performs against slaves. 对主机执行写和敏感读取操作,对从设备执行读操作。

I am not able to correlate Clustering with Replication and Sharding, could you please someone guide me how to relate them? 我无法将“群集”与“复制和分片”相关联,请您指导我如何将它们相关联?

Term "clustering" is not normally used with mongodb. mongodb通常不使用术语“集群”。 Instead, its meaning included in the term "sharding". 相反,其含义包括在术语“分片”中。 A shard is a node/replicaset with only a portion of your data, yes. 分片是仅包含部分数据的节点/副本,是的。 And cluster is simply a collection of shards (and supporting nodes, like config servers and mongos routers) 集群只是碎片(以及支持节点,例如配置服务器和mongos路由器)的集合

Whereas replication is done with replica sets, which have one primary node (master) and other nodes are secondaries (slaves). 而复制是通过副本集完成的,副本集具有一个主节点(主节点),其他节点是辅助节点(从节点)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM