How to sync two Atlas clusters

We are currently running a production workload on one Atlas cluster and a staging workload on another Atlas cluster. We want to synchronize data between those two clusters.

Currently, we do a full backup restore periodically every X days. This strategy tends to become harder as the database grows in size over time.

Are there standard solutions for mirroring production data onto a staging cluster - possibly continuously / live?

Best,
Martin

1 Like

Hi @MartinLoeper,

Mirroring data set between MongoDB atlas clusters can potentially be done via the mongomirror tool, however, since it is a standalone process you need to reliably monitor and resume it at your own risk. This tool was designed for live migration purposes therefore was never tested for long duration tests which means we cannot guarantee if it will be sustainable or perffomant solution.

https://docs.atlas.mongodb.com/reference/mongomirror/

Alternatively, you can setup Atlas triggers linking both clusters to migrate subsets of collections from source to target.

Best
Pavel

2 Likes

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.