Skip to content

Alternative approach to shards migration #3082

Answered by wohali
subin94 asked this question in Q&A
Discussion options

You must be logged in to vote

That's a completely acceptable approach, assuming your client application(s) can handle it, and your nodes have sufficient storage for both databases at once.

You also have to rebuild all of the views and Mango secondary indexes; for some, this is prohibitively expensive.

Finally, keep in mind that for a cluster of >3 nodes, you can't necessarily guarantee balancing across all machines will be automatically generated. For even bigger clusters, if your # of nodes is greater than the total number of shard replicas (by default in 3.x: q*n = 2*3 = 6) you absolutely will have an unbalanced cluster.

If you care significantly about a perfectly balanced cluster, and your databases are big & your …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants