Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1644

getShardDistribution not showing all shard information

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.4.2
    • Component/s: All Tools
    • Labels:
    • Environment:
      Three ReplicaSet Shard with ReplicaSet Config Server Basic Test Environment
    • 2

      getShardDistribution not showing all shard information

      getShardDistributon OutPut
      Shard r1 at r1/DESKTOP-KALPESH:30001,DESKTOP-KALPESH:30002
      data : 27KiB docs : 38 chunks : 1
      estimated data per chunk : 27KiB
      estimated docs per chunk : 38

      Shard r2 at r2/DESKTOP-KALPESH:34001,DESKTOP-KALPESH:34002,DESKTOP-KALPESH:34003
      data : 792B docs : 1 chunks : 1
      estimated data per chunk : 792B
      estimated docs per chunk : 1

      mongos> sh.status()
      — Sharding Status —
      sharding version:

      { "_id" : 1, "minCompatibleVersion" : 5, "currentVersion" : 6, "clusterId" : ObjectId("58ec84766ca5ebed9b426d46") }

      shards:

      { "_id" : "r1", "host" : "r1/DESKTOP-KALPESH:30001,DESKTOP-KALPESH:30002", "state" : 1 } { "_id" : "r2", "host" : "r2/DESKTOP-KALPESH:34001,DESKTOP-KALPESH:34002,DESKTOP-KALPESH:34003", "state" : 1 } { "_id" : "r3", "host" : "r3/DESKTOP-KALPESH:35001,DESKTOP-KALPESH:35002,DESKTOP-KALPESH:35003", "state" : 1 }

      active mongoses:
      "3.4.2" : 1
      autosplit:
      Currently enabled: yes
      balancer:
      Currently enabled: yes
      Currently running: no
      Balancer lock taken at Tue Apr 11 2017 12:53:34 GMT+0530 (India Standard Time) by ConfigServer:Balancer
      Failed balancer rounds in last 5 attempts: 0
      Migration Results for the last 24 hours:

      Totals
      data : 27KiB docs : 39 chunks : 2
      Shard r1 contains 97.23% data, 97.43% docs in cluster, avg obj size on shard : 733B
      Shard r2 contains 2.76% data, 2.56% docs in cluster, avg obj size on shard : 792B

            Assignee:
            Unassigned Unassigned
            Reporter:
            KalpeshChheda2 Kalpesh Chheda [X]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: