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

Large difference in data size between shards

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 3.2.16
    • Fix Version/s: None
    • Component/s: Admin, Diagnostics
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: