Re: spread index not equally each sharding

2015-07-31 Thread Erick Erickson
How did you create your collection? And let's see an example of to be sure you aren't doing any explicit routing, denoted by a bang (!). If you used implicit routing that's another possibility. Best, Erick On Jul 31, 2015 1:26 PM, "Upayavira" wrote: > Yes, a 32 bit murmur3 hash is taken of the I

Re: spread index not equally each sharding

2015-07-31 Thread Upayavira
Yes, a 32 bit murmur3 hash is taken of the ID field. Each of your three shards is assigned a third of the 0-2^32 range. The document is then sent to the shard who's range contains the hash of the ID. Maybe your IDs don't create an even distribution of hashes (look at your maxdocs for each shard) o

Re: spread index not equally each sharding

2015-07-31 Thread Raja Pothuganti
As far as I know sharding is done on basis of unique key hash(by default). So most of the time, each shard will have almost equal number of documents. But each of document my have different size which can show up as different index size per shard. Thanks On 7/31/15, 5:49 AM, "wilanjar ." wrote: