【Mongodb】分片加複製集
mongo分片加複製集配置檔案如下:
所有的機器上都有
-
shard1配置檔案
-
[root@ip-10-1-2-32 etc]# more shard1.conf
-
logpath=/usr/local/mongodb/logs/mongo_shard1.log
logappend=true # need logrotae scripts
fork=true
journal=true
port=27019
#vvvvv = true
#diaglog = 3
dbpath=/usr/local/mongodb/shard1
pidfilepath=/usr/local/mongodb/logs/mongo_shard1.pid
bind_ip=10.1.2.32
replSet=shard1
shardsvr=true
-
shard2配置檔案
-
[root@ip-10-1-2-32 etc]# more shard2.conf
logpath=/usr/local/mongodb/logs/mongo_shard2.log
logappend=true # need logrotae scripts
fork=true
journal=true
port=27018
#vvvvv = true
#diaglog = 3
dbpath=/usr/local/mongodb/shard2
pidfilepath=/usr/local/mongodb/logs/mongo_shard2.pid
bind_ip=10.1.2.32
replSet=shard2
shardsvr=true
-
Config Server配置檔案
-
[root@ip-10-1-2-32 etc]# more config.conf
logpath=/usr/local/mongodb/logs/mongo_config.log
logappend=true # need logrotae scripts
fork=true
journal=true
port=27000
dbpath=/usr/local/mongodb/config
pidfilepath=/usr/local/mongodb/logs/mongo_config.pid
configsvr=true
replSet=conf
bind_ip=10.1.2.32
-
Route Process配置檔案
-
[root@ip-10-1-2-32 etc]# more mongos.conf
logpath=/usr/local/mongodb/logs/mongos.log
logappend=true # need logrotae scripts
fork=true
port=30000
pidfilepath=/usr/local/mongodb/logs/mongos.pid
configdb=conf/10.1.2.32:27000,10.1.2.68:27000,10.1.2.175:27000
bind_ip=10.1.2.32
-
- (3.2開始的寫法,必須指定config的複製集)
(3.2之前的寫法)
- ##configdb=10.1.2.32:27000,10.1.2.68:27000,10.1.2.175:27000
-
-
/usr/local/mongodb/bin/mongod -f shard1.conf
-
搭建shard1的複製集
-
/usr/local/mongodb/bin/mongo 10.1.2.32:27019
-
> config_rs1 = {_id: 'shard1', members: [{_id: 0, host: '10.1.2.32:27019', priority:1}, {_id: 1, host: '10.1.2.68:27019'},{_id: 2, host: '10.1.2.175:27019'}]}
-
{
-
"_id" : "shard1",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.1.2.32:27019",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.1.2.68:27019"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.1.2.175:27019"
-
}
-
]
-
}
-
> rs.initiate(config_rs1);
- { "ok" : 1 }
-
搭建shard1的複製集
-
/usr/local/mongodb/bin/mongod -f shard2.conf
-
搭建shard2的複製集
-
/usr/local/mongodb/bin/mongo 10.1.2.32:27018
-
> config_rs2 = {_id: 'shard2', members: [{_id: 0, host: '10.1.2.32:27018', priority:1}, {_id: 1, host: '10.1.2.68:27018'},{_id: 2, host: '10.1.2.175:27018'}]}
-
{
-
"_id" : "shard2",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.1.2.32:27018",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.1.2.68:27018"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.1.2.175:27018"
-
}
-
]
-
}
-
> rs.initiate(config_rs2);
- { "ok" : 1 }
-
搭建shard2的複製集
-
-
/usr/local/mongodb/bin/mongod -f config.conf
-
搭建config的複製集:
-
/usr/local/mongodb/bin/mongo 10.1.2.32:27000
-
> config_rep = {_id: 'conf', members: [{_id: 0, host: '10.1.2.32:27000', priority:1}, {_id: 1, host: '10.1.2.68:27000'},{_id: 2, host: '10.1.2.175:27000'}]}
-
{
-
"_id" : "conf",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.1.2.32:27000",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.1.2.68:27000"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.1.2.175:27000"
-
}
-
]
-
}
-
> rs.initiate(config_rep);
-
{
-
"ok" : 1,
-
"operationTime" : Timestamp(1525333057, 1),
-
"$gleStats" : {
-
"lastOpTime" : Timestamp(1525333057, 1),
-
"electionId" : ObjectId("000000000000000000000000")
-
},
-
"$clusterTime" : {
-
"clusterTime" : Timestamp(1525333057, 1),
-
"signature" : {
-
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
-
"keyId" : NumberLong(0)
-
}
-
}
- }
-
搭建config的複製集:
-
/usr/local/mongodb/bin/mongos -f mongos.conf
-
新增分片設定
-
/usr/local/mongodb/bin/mongo 10.1.2.32:30000
-
mongos> db.runCommand({ addshard: 'shard1/10.1.2.32:27019,10.1.2.68:27019,10.1.2.175:27019'})
-
{
-
"shardAdded" : "shard1",
-
"ok" : 1,
-
"$clusterTime" : {
-
"clusterTime" : Timestamp(1525333858, 7),
-
"signature" : {
-
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
-
"keyId" : NumberLong(0)
-
}
-
},
-
"operationTime" : Timestamp(1525333858, 7)
-
}
-
mongos> db.runCommand({ addshard: 'shard2/10.1.2.32:27018,10.1.2.68:27018,10.1.2.175:27018'})
-
{
-
"shardAdded" : "shard2",
-
"ok" : 1,
-
"$clusterTime" : {
-
"clusterTime" : Timestamp(1525333888, 4),
-
"signature" : {
-
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
-
"keyId" : NumberLong(0)
-
}
-
},
-
"operationTime" : Timestamp(1525333888, 4)
-
}
-
mongos> db.runCommand({ enablesharding: 'test'})
-
{
-
"ok" : 1,
-
"$clusterTime" : {
-
"clusterTime" : Timestamp(1525333913, 7),
-
"signature" : {
-
"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
-
"keyId" : NumberLong(0)
-
}
-
},
-
"operationTime" : Timestamp(1525333913, 7)
- }
-
新增分片設定
1.只想做複製集
-
三臺機器配置如下
-
[root@mysql02 yum.repos.d]# more /home/mongodb/etc/config.cnf
-
logpath=/home/mongodb/logs/mongo_config.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27000
-
dbpath=/home/mongodb/config
-
pidfilepath=/home/mongodb/logs/mongo_config.pid
-
replSet=replset ---複製集名稱
選取第一臺主進行配置
-
注意:這個id一定要與上面配置檔案的複製集名稱一樣
-
> config_replset = {_id: 'replset', members: [ {_id: 0, host: '10.168.17.201:27000', priority:1}, {_id: 1, host: '10.168.17.202:27000'}, {_id: 2, host: '10.168.17.203:27000'}] }
-
{
-
"_id" : "replset",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.168.17.201:27000",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.168.17.202:27000"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.168.17.203:27000"
-
}
-
]
-
}
初始化並檢視是否成功
> rs.initiate(config_replset)
{ "ok" : 1 }
replset:OTHER> rs.status()
{
"set" : "replset",
"date" : ISODate("2018-04-11T03:46:23.680Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "10.168.17.201:27000",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 575,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"infoMessage" : "could not find member to sync from",
"electionTime" : Timestamp(1523418352, 1),
"electionDate" : ISODate("2018-04-11T03:45:52Z"),
"configVersion" : 1,
"self" : true
},
{
"_id" : 1,
"name" : "10.168.17.202:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
},
{
"_id" : 2,
"name" : "10.168.17.203:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
}
],
"ok" : 1
}
replset:PRIMARY> rs.isMaster()
{
"hosts" : [
"10.168.17.201:27000",
"10.168.17.202:27000",
"10.168.17.203:27000"
],
"setName" : "replset",
"setVersion" : 1,
"ismaster" : true,
"secondary" : false,
"primary" : "10.168.17.201:27000",
"me" : "10.168.17.201:27000",
"electionId" : ObjectId("7fffffff0000000000000001"),
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 1000,
"localTime" : ISODate("2018-04-11T03:46:39.233Z"),
"maxWireVersion" : 4,
"minWireVersion" : 0,
"ok" : 1
}
-
三臺機器配置如下
-
[root@mysql02 yum.repos.d]# more /home/mongodb/etc/config.cnf
-
logpath=/home/mongodb/logs/mongo_config.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27000
-
dbpath=/home/mongodb/config
-
pidfilepath=/home/mongodb/logs/mongo_config.pid
- replSet=replset ---複製集名稱
選取第一臺主進行配置
-
注意:這個id一定要與上面配置檔案的複製集名稱一樣
-
> config_replset = {_id: 'replset', members: [ {_id: 0, host: '10.168.17.201:27000', priority:1}, {_id: 1, host: '10.168.17.202:27000'}, {_id: 2, host: '10.168.17.203:27000'}] }
-
{
-
"_id" : "replset",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.168.17.201:27000",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.168.17.202:27000"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.168.17.203:27000"
-
}
-
]
-
}
初始化並檢視是否成功
> rs.initiate(config_replset)
{ "ok" : 1 }
replset:OTHER> rs.status()
{
"set" : "replset",
"date" : ISODate("2018-04-11T03:46:23.680Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "10.168.17.201:27000",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 575,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"infoMessage" : "could not find member to sync from",
"electionTime" : Timestamp(1523418352, 1),
"electionDate" : ISODate("2018-04-11T03:45:52Z"),
"configVersion" : 1,
"self" : true
},
{
"_id" : 1,
"name" : "10.168.17.202:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
},
{
"_id" : 2,
"name" : "10.168.17.203:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
}
],
"ok" : 1
}
replset:PRIMARY> rs.isMaster()
{
"hosts" : [
"10.168.17.201:27000",
"10.168.17.202:27000",
"10.168.17.203:27000"
],
"setName" : "replset",
"setVersion" : 1,
"ismaster" : true,
"secondary" : false,
"primary" : "10.168.17.201:27000",
"me" : "10.168.17.201:27000",
"electionId" : ObjectId("7fffffff0000000000000001"),
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 1000,
"localTime" : ISODate("2018-04-11T03:46:39.233Z"),
"maxWireVersion" : 4,
"minWireVersion" : 0,
"ok" : 1
}
- 注意:這個id一定要與上面配置檔案的複製集名稱一樣
-
> config_replset = {_id: 'replset', members: [ {_id: 0, host: '10.168.17.201:27000', priority:1}, {_id: 1, host: '10.168.17.202:27000'}, {_id: 2, host: '10.168.17.203:27000'}] }
-
{
-
"_id" : "replset",
-
"members" : [
-
{
-
"_id" : 0,
-
"host" : "10.168.17.201:27000",
-
"priority" : 1
-
},
-
{
-
"_id" : 1,
-
"host" : "10.168.17.202:27000"
-
},
-
{
-
"_id" : 2,
-
"host" : "10.168.17.203:27000"
-
}
-
]
- }
初始化並檢視是否成功
> rs.initiate(config_replset)
{ "ok" : 1 }
replset:OTHER> rs.status()
{
"set" : "replset",
"date" : ISODate("2018-04-11T03:46:23.680Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"members" : [
{
"_id" : 0,
"name" : "10.168.17.201:27000",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 575,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"infoMessage" : "could not find member to sync from",
"electionTime" : Timestamp(1523418352, 1),
"electionDate" : ISODate("2018-04-11T03:45:52Z"),
"configVersion" : 1,
"self" : true
},
{
"_id" : 1,
"name" : "10.168.17.202:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
},
{
"_id" : 2,
"name" : "10.168.17.203:27000",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 41,
"optime" : {
"ts" : Timestamp(1523418353, 1),
"t" : NumberLong(1)
},
"optimeDate" : ISODate("2018-04-11T03:45:53Z"),
"lastHeartbeat" : ISODate("2018-04-11T03:46:22.768Z"),
"lastHeartbeatRecv" : ISODate("2018-04-11T03:46:23.221Z"),
"pingMs" : NumberLong(0),
"syncingTo" : "10.168.17.201:27000",
"configVersion" : 1
}
],
"ok" : 1
}
replset:PRIMARY> rs.isMaster()
{
"hosts" : [
"10.168.17.201:27000",
"10.168.17.202:27000",
"10.168.17.203:27000"
],
"setName" : "replset",
"setVersion" : 1,
"ismaster" : true,
"secondary" : false,
"primary" : "10.168.17.201:27000",
"me" : "10.168.17.201:27000",
"electionId" : ObjectId("7fffffff0000000000000001"),
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 1000,
"localTime" : ISODate("2018-04-11T03:46:39.233Z"),
"maxWireVersion" : 4,
"minWireVersion" : 0,
"ok" : 1
}
2.只想做分片
-
一臺機器上做分片配置即可
-
[root@mysql04 etc]# ll
-
總用量 16
-
-rw-r--r-- 1 root root 208 4月 11 13:42 config.cnf
-
-rw-r--r-- 1 root root 169 4月 11 13:48 mongos.cnf
-
-rw-r--r-- 1 root root 227 4月 11 13:41 shard1.cnf
-
-rw-r--r-- 1 root root 227 4月 11 13:42 shard2.cnf
-
[root@mysql04 etc]# more *.cnf
-
::::::::::::::
-
config.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_config.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27000
-
dbpath=/home/mongodb/config
-
pidfilepath=/home/mongodb/logs/mongo_config.pid
-
configsvr=true
-
::::::::::::::
-
mongos.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongos.log
-
logappend=true # need logrotae scripts
-
fork=true
-
port=30000
-
pidfilepath=/home/mongodb/logs/mongos.pid
-
configdb=10.168.17.204:27000
-
::::::::::::::
-
shard1.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_shard1.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27019
-
dbpath=/home/mongodb/shard1
-
pidfilepath=/home/mongodb/logs/mongo_shard1.pid
-
shardsvr=true
-
directoryperdb=true
-
::::::::::::::
-
shard2.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_shard2.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27018
-
dbpath=/home/mongodb/shard2
-
pidfilepath=/home/mongodb/logs/mongo_shard2.pid
-
shardsvr=true
-
directoryperdb=true
和分片加複製集的區別不大!
- 一臺機器上做分片配置即可
-
[root@mysql04 etc]# ll
-
總用量 16
-
-rw-r--r-- 1 root root 208 4月 11 13:42 config.cnf
-
-rw-r--r-- 1 root root 169 4月 11 13:48 mongos.cnf
-
-rw-r--r-- 1 root root 227 4月 11 13:41 shard1.cnf
-
-rw-r--r-- 1 root root 227 4月 11 13:42 shard2.cnf
-
[root@mysql04 etc]# more *.cnf
-
::::::::::::::
-
config.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_config.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27000
-
dbpath=/home/mongodb/config
-
pidfilepath=/home/mongodb/logs/mongo_config.pid
-
configsvr=true
-
::::::::::::::
-
mongos.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongos.log
-
logappend=true # need logrotae scripts
-
fork=true
-
port=30000
-
pidfilepath=/home/mongodb/logs/mongos.pid
-
configdb=10.168.17.204:27000
-
::::::::::::::
-
shard1.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_shard1.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27019
-
dbpath=/home/mongodb/shard1
-
pidfilepath=/home/mongodb/logs/mongo_shard1.pid
-
shardsvr=true
-
directoryperdb=true
-
::::::::::::::
-
shard2.cnf
-
::::::::::::::
-
logpath=/home/mongodb/logs/mongo_shard2.log
-
logappend=true # need logrotae scripts
-
fork=true
-
journal=true
-
port=27018
-
dbpath=/home/mongodb/shard2
-
pidfilepath=/home/mongodb/logs/mongo_shard2.pid
-
shardsvr=true
- directoryperdb=true
和分片加複製集的區別不大!
mongodb 執行時新增新的分片複製集
http://blog.csdn.net/mchdba/article/details/51867303來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29096438/viewspace-2125975/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Mongodb】往分片複製集新增複製成員MongoDB
- 【Mongodb】分片複製集環境新增新的分片MongoDB
- mongodb複製+分片MongoDB
- 02 . MongoDB複製集,分片集,備份與恢復MongoDB
- mongodb複製集(replica sets)+分片(sharding)環境搭建MongoDB
- Mongodb主從複製/ 副本集/分片叢集介紹MongoDB
- 【Mongo】mongo分片加複製集的備份恢復Go
- 【Mongo】單節點升級為複製集再升級為分片加複製集Go
- mongodb複製集MongoDB
- MongoDB 搭建複製集MongoDB
- MongoDB複製集原理MongoDB
- mongodb複製集搭建MongoDB
- MongoDB學習4:MongoDB複製集機制和原理,搭建複製集MongoDB
- MongoDB mongoshake 遷移分片到複製集合MongoDB
- 【Mongodb】 可複製集搭建MongoDB
- mongodb 分片叢集建立分片集合MongoDB
- MongoDB分片叢集新增分片(自用)MongoDB
- MongoDB 分片叢集搭建MongoDB
- MongoDB叢集之分片MongoDB
- 搭建MongoDB分片叢集MongoDB
- MongoDB搭建Replica Set複製集MongoDB
- MongoDB學習之複製集MongoDB
- MongoDB 複製集模式Replica SetsMongoDB模式
- 利用Mongodb的複製集搭建高可用分片,Replica Sets + Sharding的搭建過程MongoDB
- MySQL Cluster 與 MongoDB 複製群集分片設計及原理MySqlMongoDB
- MongoDB複製集資料同步流程MongoDB
- mongoDB研究筆記:複製集概述MongoDB筆記
- mongodb 分片叢集設定MongoDB
- MongoDB分片叢集常用操作MongoDB
- mongodb複製集(replica set)搭建及管理MongoDB
- mongodb6.0.13 搭建複製集PSAMongoDB
- MongoDB分片叢集chunk的概念MongoDB
- 高可用mongodb叢集(分片+副本)MongoDB
- mongodb副本叢集和分片叢集佈署MongoDB
- MongoDB原理:複製集狀態同步機制MongoDB
- MongoDB Sharding(二) -- 搭建分片叢集MongoDB
- Mongodb分散式叢集副本集+分片MongoDB分散式
- mongodb的分散式叢集(3、分片)MongoDB分散式