Add orphans info in `collStats` aggregation stage output

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding EMEA 2022-03-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: