Hi all,
I'm testing mongoDB sharding with 2 shards and inserted around 1,000,000 documents.
My maximum chunk size is set at default, 64 MB, however, I found that the data size per chunk is way bigger than that.
Here's the sharding distribution:
--- coba.coba.pageView
Shard replA at replA/replA1.com:27017,replA2.com:27017
data : 1.94GiB docs : 539261 chunks : 17
estimated data per chunk : 117.02MiB
estimated docs per chunk : 31721
Shard replB at replB/replB1.com:27017,replB2.com:27017
data : 1.69GiB docs : 470715 chunks : 11
estimated data per chunk : 157.87MiB
estimated docs per chunk : 42792
Totals
data : 3.63GiB docs : 1009976 chunks : 28
Shard replA contains 53.39% data, 53.39% docs in cluster, avg obj size on shard : 3KiB
Shard replB contains 46.6% data, 46.6% docs in cluster, avg obj size on shard : 3KiB
It looked like the chunk would not split even when the size exceeded the maximum size.
The shard key is hashed, so I'm quite sure it's not a key granularity issue.
Any idea why? Would I need to split chunks manually?
Any help would be greatly appreciated, thank you!
Nisrina