1

We planning our data migration from one standalone server to other standalone server. (we can't use replication due to some constraint)

We had used fsyncLock() and fsyncUnlock() to ensure complete isolation during mongodump

but we are are unsure how to run mongoimport on complete isolation.

Trying to think what could be the best way we can achieve this nothing concrete.

  • Like stopping all our services and then mongoimport.

Does mongodb provide anything here? how does one gaurantee consistency with mongoimport.

1 Answer 1

0

If you are using MongoDB Atlas then you can try Migrate Deployments might reduce the downtime to a minimum. There are workflows for live migration.

In the background, mitigation runs mongomirror for easy migration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.