分片: 分片集群基础配置
Last updated
Was this helpful?
Last updated
Was this helpful?
系统版本
服务器ip地址
分片集群角色
端口号
CentOS Linux release 7.6.1810 (Core)
192.168.0.92
Master
30000
CentOS Linux release 7.6.1810 (Core)
192.168.0.92
config
20000
CentOS Linux release 7.6.1810 (Core)
192.168.0.92
shard1
27017
CentOS Linux release 7.6.1810 (Core)
192.168.0.92
shard2
27018
CentOS Linux release 7.6.1810 (Core)
192.168.0.92
shard3
27019
CentOS Linux release 7.6.1810 (Core)
192.168.0.93
config
20000
CentOS Linux release 7.6.1810 (Core)
192.168.0.93
shard1
27017
CentOS Linux release 7.6.1810 (Core)
192.168.0.93
shard2
27018
CentOS Linux release 7.6.1810 (Core)
192.168.0.93
shard3
27019
CentOS Linux release 7.6.1810 (Core)
192.168.0.94
config
20000
CentOS Linux release 7.6.1810 (Core)
192.168.0.94
shard1
27017
CentOS Linux release 7.6.1810 (Core)
192.168.0.94
shard2
27018
CentOS Linux release 7.6.1810 (Core)
192.168.0.94
shard3
27019
首先根据 创建出三个副本集集群,副本集名称分别为shard1、shard2、shard3。
注意:从3.4开始,mongod 不再支持将已弃用的镜像实例用作配置服务器(SCCC)。在将分片群集升级到3.4之前,必须将配置服务器从SCCC转换为CSRS。可以将配置集节点作为副本集群实现数据的一致性。
以 node92 副本集 shard1 为例,其他副本集节点依次添加。