For a project, I am trying to setup Mongo and Elasticsearch. So, both I need to create mongo replica set. Basically, we actually don’t need to do much with mongo replica set. We only need replica set so that replication log of mongo are created and then mongo-connector uses this log to update elastic search with almost the real-time data.
How to setup replication set on MongoDB?