O'Reilly logo

MongoDB High Availability by Afshin Mehrabani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Migrating a replica set in action

For the first part of the migration, we are going to migrate a replica set. In this section, we will learn how to add a new node to the replica set and wait for the synchronization process. Then, we remove the old node and make sure that the migration has been completed successfully.

Explaining the migration process

In this scenario, we have a replica set with one primary, one secondary, and one arbiter node. The following diagram shows the replica set and its members:

Explaining the migration process

Then, we will add a new node to the existing replica set and remove the current primary node.

In this part, a new secondary node synchronizes its oplog ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required