Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.