There is running a single node mongodb server, and about 28,000,000 documents, now I want to convert it to replicaSet, but I am not sure if it will cost too much time? and also if the db will works during the initialize process?
Asked
Active
Viewed 43 times
0
-
what do you mean by 2800w? – Saleem Mar 23 '16 at 03:37
-
sorry, I mean 28 millions – Andy Cheung Mar 23 '16 at 03:44
2 Answers
0
If you config right, I mean avoid mongodb-primary-replica-becomes-secondary-if-secondary-fails, it will works during the initialize process. The initialization time depends on network bandwidth and cost of index building.
0
Once your primary is up and ready, documents will be accessible as primary will hold all current documents, But secondaries will take a while to sync data from primary.
See my answer to another related post MongoDB hidden secondary stuck in startup?, I'm sure it will help you.