mongodbmongodb-replica-set

Mongo Replica: Is it possible to add a member that doesn't have any effect on elections and availability?


I have a replica set with 3 members that will continue functioning if 1 of 3 goes down. Now, I need to add another secondary member to a replica, which I want to be optional to the replica in all regards. I'm curious if priority: 0 + votes: 0 will do the trick or not.

That new replica member can go down fairly likely and frequently, and I want to configure it in a way, that will still allow 1 other member to go down (in addition to a new one) and still keep the replica set working (i.e., with 2 out of 4 members, but with 2 out of 3 votes). In other words, I don't want the new member to negatively affect the replica set availability.

Is it possible?

Thank you in advance!


Solution

  • Set the member to votes=0,priority=0,hidden=true and you can stop/start any time without replicaSet or applications to understand ...