亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標(biāo)題:
復(fù)制集的問(wèn)題
[打印本頁(yè)]
作者:
ipx-spx
時(shí)間:
2017-07-30 07:43
標(biāo)題:
復(fù)制集的問(wèn)題
我的Mongodb集群設(shè)置:
primary---second--arbit
primary上設(shè)置了兩個(gè)分片 second上也設(shè)置了兩個(gè)分片
shard0001.conf
logpath=/home/bdxiaodai/test-mongodb/log/shard0001.log
logappend=true
fork=true
port=51002
oplogSize=1
shardsvr=true
replSet=rs1
wiredTigerCacheSizeGB=1
dbpath=/home/bdxiaodai/test-mongodb/data/shard0001
pidfilepath=/home/bdxiaodai/test-mongodb/pid/shard0001.pid
shard0002.conf
logpath=/home/bdxiaodai/test-mongodb/log/shard0002.log
logappend=true
fork=true
port=51003
oplogSize=1
shardsvr=true
replSet=rs2
wiredTigerCacheSizeGB=1
dbpath=/home/bdxiaodai/test-mongodb/data/shard0002
pidfilepath=/home/bdxiaodai/test-mongodb/pid/shard0002.pid
在這3臺(tái)服務(wù)器上都設(shè)置了config 和mongos
configsvr.conf
logpath=/home/bdxiaodai/test-mongodb/log/configsvr.log
logappend=true
fork=true
port=51001
configsvr=true
replSet=rsconfig
dbpath=/home/bdxiaodai/test-mongodb/data/configsvr
pidfilepath=/home/bdxiaodai/test-mongodb/pid/configsvr.pid
mongos.conf
logpath=/home/bdxiaodai/test-mongodb/log/mongos.log
logappend=true
fork=true
port=51000
pidfilepath=/home/bdxiaodai/test-mongodb/pid/mongos.pid
configdb=rsconfig/192.168.99.83:51001,192.168.99.85:51001,192.168.99.84:51001
arbit
ab1.conf
logpath=/home/bdxiaodai/test-mongodb/log/ab1.log
logappend=true
fork=true
port=51002
oplogSize=1
dbpath=/home/bdxiaodai/test-mongodb/data/ab1
pidfilepath=/home/bdxiaodai/test-mongodb/pid/ab1.pid
#shardsvr=true
replSet=rs1
ab2.conf
logpath=/home/bdxiaodai/test-mongodb/log/ab2.log
logappend=true
fork=true
port=51003
oplogSize=1
dbpath=/home/bdxiaodai/test-mongodb/data/ab2
pidfilepath=/home/bdxiaodai/test-mongodb/pid/ab2.pid
#shardsvr=true
replSet=rs2
3臺(tái)服務(wù)器能正常復(fù)制
但是當(dāng)primary掛掉了以后,就會(huì)發(fā)現(xiàn)無(wú)法整個(gè)集群就無(wú)法讀取和保存數(shù)據(jù)了,這是什么問(wèn)題?請(qǐng)有經(jīng)驗(yàn)的大大指點(diǎn)下!
歡迎光臨 Chinaunix (http://www.72891.cn/)
Powered by Discuz! X3.2