Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
386 views
in Technique[技术] by (71.8m points)

database - Local Mongo DB sync to production MongoDB

I know about mongoDB Replica set offers master slave configuration but is there a possibility to write in multiple mongodb database instances (running for example in multiple docker containers ) and then syncing the changes to one (local) master and then pushing the changes to (production) master?

Or if that's not possible then I know one way would be to write in a (local) master database maybe using transactions to avoid concurrency issues but how can I push those changes to a (production) master server. My data has 100s of GBs so I want to save everything in local first to avoid network bottlenecks.

All somewhat related answers are really old and not related to mongodb 4.4 or at least 4+


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...