Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Unable to configure MongoDB replication without initial sync

$
0
0

I have a biggest MongoDB database in prod server. I want to setup replica set, So generally if we enabled replica set option on both server config file, it'll automatically start sync the data from the scratch.But I don't want to sync from the beginning. I need to configure it like MySQL replication.

The process should be,

Take dump from primary Restore it on secondary Enable replica set in config file(On both servers) Restart MongoDB.

Go to primary server and add the secondary node.

This is my requirement, Is possible or any other alternate solution for this?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>