Replication tutorials Master-replica: manual failover Prerequisites Configuring a replica set Working with a replica set Adding instances Performing manual failover Removing instances Master-replica: automated failover Prerequisites Configuring a replica set Working with a replica set Testing automated failover Choosing a leader manually Adding and removing instances Master-master Prerequisites Configuring a replica set Working with a replica set Resolving replication conflicts Adding and removing instances