Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18920

When adding/removing a replica set, is there a recommended procedure to ensure a primary gets elected ?

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Admin
    • None

    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 ?

      Attachments

        Activity

          People

            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            kevin.doherty@feefo.com Kevin Doherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: