Three nodes using replica set in MongoDb and 2,

in 3-node replicaSet, why, when 2 are below the third, become SECONDARY, not PRIMARY?

I want to have 2 mongods inside the DataCenter and one outside, so if the Datacenters fail, I want the third external mongod to become Primary.

Is it possible without an arbitrator?

+5
source share
2 answers

Ok, the answer is found:

http://tebros.com/2010/11/mongodb-arbiters-with-only-two-replicas/

?! , mongod , , . , . , , . , rep1-1 , , .

+7

(cluster_participants/2) + 1 ( , ), . noDe , .

, 5 noDe 3 , , 3 .

: http://docs.mongodb.org/manual/core/replication-internals/#replica-set-election-internals

+3

All Articles