Skip to main content
improved formatting, spelling, word choice (terminology), sentence construction, etc
Source Link

MongoDB replicasecondary node does not become primary when other nodes are stopped

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?

MongoDB replica does not become primary

I am new to MongoDB.

I want to cluster MongoDB by using replica set. I have created three node replicaset rs0,rs1,rs2. and run db parallel with no issues. But when I shutdown any two instance (one primary and secondary) then remaining replica member does't make it a primary, it remains as a 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)

Why?

MongoDB secondary node does not become primary when other nodes are stopped

I want to cluster MongoDB by using a replica set. I have created a three-node replicaset (rs0,rs1,rs2), and run the DBs in parallel with no issues. But when I shut down any two instance (one primary and secondary), the remaining secondary member is not made the primary, instead it remains as a secondary.

Step1:

  • rs0: primary
  • rs1: secondary
  • rs2: secondary

Every thing is ok. When

Step2:

  • rs0: stopped
  • rs1: stopped
  • rs2: secondary (This is not promoted to primary)

Why?

Improved formatting
Source Link
SqlWorldWide
  • 13.6k
  • 3
  • 29
  • 54

Mongo MongoDB replica does not become primary

I am new in Mongodbto MongoDB.

I want to cluster mongodbMongoDB by using replica set. I have created three node replicaset rs0,rs1,rs2. and run db parallel andwith no issueissues. But when i have closeI shutdown any two instance one(one primary and secondary) then single instanceremaining replica member does't make as primary it remain secondrya primary, it remains as a 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)

Why???

Mongo replica does not become primary

I am new in Mongodb.

I want to cluster mongodb by using replica set. I have created three replicaset rs0,rs1,rs2. and run db parallel and no issue. But when i have close any two instance one primary and secondary then single instance does't make as primary it remain secondry

 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)

Why???

MongoDB replica does not become primary

I am new to MongoDB.

I want to cluster MongoDB by using replica set. I have created three node replicaset rs0,rs1,rs2. and run db parallel with no issues. But when I shutdown any two instance (one primary and secondary) then remaining replica member does't make it a primary, it remains as a 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)

Why?

Source Link
s_kumar
  • 39
  • 1
  • 2

Mongo replica does not become primary

I am new in Mongodb.

I want to cluster mongodb by using replica set. I have created three replicaset rs0,rs1,rs2. and run db parallel and no issue. But when i have close any two instance one primary and secondary then single instance does't make as primary it remain secondry

 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)

Why???