How to configure a MongoDB replica set (local machine)
This post will guide you through the steps to set up a local replica set with two members and one arbiter.
In a production environment the steps must be almost the same except that instead of starting three local MongoDB instances in different ports you would start an instance of