MongoDB documentation recommends against an even number of replicas due to problems with electing a primary. If one of these replicas is non-voting, does that solve the problem?

Other

I hope the question makes sense. Basically, I have three replica sets and I want to add one without causing an election.


Replica sets should always have an odd number of members. This ensures that elections will proceed smoothly

Documentation on elections

Documentation on non-voting members

Posted Apr 27, 2019, 12:27 AM UTC

22
YMK1234•

That would mean you need to decide on who does not vote. Which brings you back to the first problem. Or having to do a custom setup on that node, and you really don't want one of your nodes to be differently configured in any way, just leads to trouble down the line.

2
ostensibly_workOP•

Thanks for the response and sorry for the slow reply. I was planning on doing the custom setup, what issues might that cause?

1