--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/6W1VhKouaTo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to a topic in the Google Groups "mongodb-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongodb-user/6W1VhKouaTo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Here is what's behind the limitation (this is described in a related Jira ticket but I'll summarize).When you initially shard a collection, mongos asks mongod to figure out the split points to split existing "chunk" (which is minKey to maxKey, or all documents) into as many chunks as necessary given the chunk size.It happens that the maximum number of split points that mongod can return is 8,192. With default chunk size of 64MB and that maximum split points, you can shard about 400-500GB of data.
So what happens if you want to shard a collection that has 800GB or 2TB of data? Well, you need to use a work-around. A simple one would be to temporarily raise the chunk size - for example, if you make it 128MB then you'll be able to shard a collection with up to 800-900GBs of data. Once initial split points are done you will lower the chunk size back to default and the mongos will end up splitting the "larger" chunks when it next checks them for whether they need to be split.In general though I would encourage folks not to wait till their collection is really huge because, as an example, if you have 500GB collection that you want to shard and you have two shards, then 250GB of data will need to be moved between shards to balance the collection. That will take some time and will add to the load on your cluster. So doing it earlier is a good idea regardless.