Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had to add a new secondary node to my replica set yesterday so that I could do maintenance on another secondary node. Now that the maintenance is complete, I'd like to remove one of the secondaries to return to my original configuration.

The problem is that I've seen that the primary node always steps down to a secondary for a few moments while a vote is performed. That's all well and good, but is there a way I can make that not happen? I'm under a pretty heavy write-load and I don't want to fail any writes.

Appreciate any help!

Thanks, Dan

share|improve this question

At the moment, there is no way to prevent an election when you remove a node, hence the note in the remove command. Generally I would recommend only doing a reconfiguration during a maintenance window unless it is an addition (which should not impact anything as long as all nodes are healthy).

This is something of a "better safe than sorry approach" for the general case because there are some scenarios where you have to have an election and others where an election really is not needed. Hence there is now SERVER-11564 where the proposed non-election scenarios are being tracked as a future improvement.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.