How to verify read/write durability

When you increase the read or write durability from default to majority, how do you know for sure that you’re getting that increased durability? Is there a way to check?

Thanks.

Of course! Initiate a three node replica set. Now, stop the two mongod and perform a write operation.
Restart the two mongod, and check write operation.

Now, change the write concern to majority and stop the two other mongod and perform the write operation.

Now, check the acknowledgement returned. :slight_smile:

Kanika

1 Like