[SERVER-18920] When adding/removing a replica set, is there a recommended procedure to ensure a primary gets elected ? Created: 11/Jun/15  Updated: 12/Aug/15  Resolved: 19/Jun/15

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Kevin Doherty Assignee: Ramon Fernandez Marina
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I currently have a live environment of 1 primary, 1 secondary and an arbiter. I need to do some protracted maintenance so I'm planning on adding another (temporary) secondary, synching up and then removing an original node to do the maintenance. When complete, the temporary box will be removed.
My question is about elections: when I add the temporary replica there should be an election, but at that moment I'll be transitioning from an odd to an even number of voters which should mean no primary is elected and my production database will be locked for writes. Is there a recommended process for adding and removing replicas to avoid election issues ?



 Comments   
Comment by Kevin Doherty [ 19/Jun/15 ]

Thanks Ramon - I wasn't aware of the Stack Overflow beastie.
Having read the documentation, I still think it's W-A-Y behind the product and the use cases - guess my 4 watchers think the same thing too.

Comment by Ramon Fernandez Marina [ 19/Jun/15 ]

kevin.doherty@feefo.com, please review the documentation on fault tolerance for more information about this issue. You may also find useful the documentation about node priorities and their impact on elections.

Please note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the mongodb-user group. See also our Technical Support page for additional support resources.

Regards,
Ramón.

Generated at Thu Feb 08 03:49:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.