创建mongodb的replica set的时候,只是做成了1主2从,没有做成1主1从1仲裁。这我们将一个几点从replica set中删除,再以仲裁节点的身份加入到replica set中:1.初始状态:shard1ReplSet:PRIMARY> rs.status();rs.status();
{
"set" : "shard1ReplSet",
"date" : ISODate("2017-02-21T07:48:03.058Z"),
"myState" : 1,
"term" : NumberLong(1),
"heartbeatIntervalMillis" : NumberLong(2000),
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"appliedOpTime" : {
"ts" : Timestam
...
继续阅读
(36)