I am trying to migrate mongodb data from On Premise server to Azure VM using replica set. The version of MongoDB is 2.6.12 and the data is about 6.5 TiB.
For one of the server which had less amount of data, replication was successful but for this server, the replica set on secondary node is not acquiring secondary state and I am getting error as “Too many files open”.
I have also set the limit for open files to 700000000, core file size to unlimited, file size to unlimited, max memory size to unlimited, max locked memory to unlimited, virtual memory to unlimited and file locks to unlimited but all in vain…
After making all the changes to the replica set in secondary node, I always get an error of too many open files on reaching to a point at 1937 GB.
Please suggest me of some ways to make this data get migrated from on premise to Azure VM.
This will be an epic upgrade to a current version!
Lots of upgrade notes and many major changes to take care of along the way. And don’t forget the application drivers.
2.6 → 3.0 → 3.2 → 3.4 → 3.6 → 4.0 → 4.2 → 4.4
You’re on the right course adding a replica. You need to see why the limits are not being set, my guess is they are not being set correctly in the systemd/upstart/init.
But the output of the command in my previous post will confirm that.