Deployment of MongoDB with replica set