Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40231

Large difference in data size between shards

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.16
    • Component/s: Admin, Diagnostics
    • Labels:
      None
    • Server Triage

      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.

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            prinsha.mongo@gmail.com Prinsha Tom
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: