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

Add orphans info in `collStats` aggregation stage output

    • Fully Compatible
    • Sharding EMEA 2022-03-21

      With the introduction of ranges, chunks distribution will become much less meaningful to evaluate whether a collection is balanced or not.

      Objective of this ticket is to return orphans as part of the collStats aggregation stage's output so that users can rely on some new metric to evaluate the balancing status.

      To get the actual size of a collection on a shard, some example of metrics may be dataSize - orphansSize or countDocuments - countOrphans.

        1. sharded-aggregation.json
          56 kB
        2. sharded-runCommand.json
          83 kB
        3. unsharded-aggregation.json
          27 kB
        4. unsharded-runCommand.json
          27 kB

            Assignee:
            allison.easton@mongodb.com Allison Easton
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: