I am new to MongoDB.
I want to cluster MongoDB by using a replica set. I have created a three node-node replicaset rs0(rs0,rs1,rs2.), and run dbthe DBs in parallel with no issues. But when I shutdownshut down any two instance (one primary and secondary) then, the remaining replicasecondary member does't make it a primaryis not made the primary, instead it remains as a secondary.
Step1 :=
rs0: primary
rs1:secondary
rs2:secondary
Step1:
- rs0: primary
- rs1: secondary
- rs2: secondary
Every thing is ok. When
Step2 :- rs0: closed
rs1:closed
rs2:secondry (This does't make as primary)
Step2:
- rs0: stopped
- rs1: stopped
- rs2: secondary (This is not promoted to primary)
Why?