0

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?

Andy Cheung
  • 125
  • 6

2 Answers2

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.

Community
  • 1
  • 1
gzc
  • 8,180
  • 8
  • 42
  • 62
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.

Community
  • 1
  • 1
Saleem
  • 8,728
  • 2
  • 20
  • 34