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.
In this scenario, we have a replica set with one
secondary, and one
arbiter node. The following diagram shows the replica set and its members:
Then, we will add a new node to the existing replica set and remove the current
In this part, a new
secondary node synchronizes its