[SERVER-40231] Large difference in data size between shards Created: 20/Mar/19  Updated: 06/Dec/22  Resolved: 20/Mar/19

Status: Closed
Project: Core Server
Component/s: Admin, Diagnostics
Affects Version/s: 3.2.16
Fix Version/s: None

Type: Question Priority: Major - P3
Reporter: Prinsha Tom Assignee: Backlog - Triage Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Triage
Participants:

 Description   

Dear Team,
 
Please find the below information that there is a huge difference in the data size between the shards.
 
mongos> db.fs.chunks.getShardDistribution()
 
Shard rs0 at rs0/Server1:27017,Server2:27017,Server3:27017
 data : 940.71GiB docs : 3867359 chunks : 62967
 estimated data per chunk : 15.29MiB
 estimated docs per chunk : 61
 
Shard rs1 at rs1/Server4:27017,Server5:27017,Server6:27017
 data : 2389.37GiB docs : 9811392 chunks : 62966
 estimated data per chunk : 38.85MiB
 estimated docs per chunk : 155
 
Totals
 data : 3330.08GiB docs : 13678751 chunks : 125933
 Shard rs0 contains 28.24% data, 28.27% docs in cluster, avg obj size on shard : 255KiB
 Shard rs1 contains 71.75% data, 71.72% docs in cluster, avg obj size on shard : 255KiB
 
Please help me resolving this issue and please let me know the cause of this issue. 
 
Thank you so much in advance. 
 
Best Regards,
Prinsha Tom.



 Comments   
Comment by Danny Hatcher (Inactive) [ 20/Mar/19 ]

Hello Prinsha,

I notice that you are using GridFS. Please ensure that you have read our documentation on sharding GridFS.

Additionally, please note that MongoDB 3.2 has reached end-of-life and we encourage you to upgrade as soon as possible.

The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to a bug, I will now close it. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Thanks,

Danny

Generated at Thu Feb 08 04:54:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.