Data Durability in Replica Sets
In this lesson, we will look at what happens to the data, stored in a database when a secondary node is killed off.
Now that you are clear on how replication works and how it is implemented let’s look into some other details.
In one of the previous lessons, what happens when a primary node fails.
However, what happens if one of the secondary nodes is killed?
We learned previously that the goal of replication is to ensure that no data is lost if a server fails. Hence, the data is still available even if a secondary node is killed off.
Implementation
Now, let’s create a replica set, kill a secondary node, and then look at its impact on the data stored in the database.
Follow the steps below:
Creating a replica set
As in the ...
Access this course and 1400+ top-rated courses and projects.