The Geek Stuff published a tutorial on MongoDB replication using replica set and arbiters
This tutorial explains in detail on how to setup MongoDB replication.How to Setup MongoDB Replication Using Replica Set and Arbiters
You can setup mongodb replication in several configurations. But we’ll discuss the minimum configuration setup.
MongoDB recommends that you have minimum of three nodes in a replica set. But, out of those three nodes, two nodes stores data and one node can be just an arbiter node.