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.