MongoDB Atlas is the cloud based platform which, provides a greater DBaaS for your application. If you are not familiar with MongoDB Atlas please follow our previous article about building a MongoDB Atlas Cluster in minutes. In this article let’s see how we can perform a failover test In MongoDB Atlas cluster.
MongoDB Atlas interface is pretty much user-friendly and, easy to navigate for any with access to the cluster. In order to perform a failover test find the “Test Failover” option in the dropdown menu
It will open you up a nice window and give you some information about the task which you are going to perform. Just click on “Restart Primary” to begin the test
Then the primary node will be restarted
Small message will be displayed to give the information about the on going operation and, make a note of the “Primary” node
After few minutes Primary node will be moved to one of the previous secondary node
So now you have successfully performed the failover test in MongoDB Atlas cluster.