Migrate printShardingStatus shell helper logic to database command

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The sh.status() and db.printShardingStatus() shell helpers both call the getPrintableShardingStatus mongosh function.
      This function is fairly complicated and does a bunch of aggregations and data manipulations to create the sh.status() output. The goal of this ticket is to analyze the getPrintableShardingStatus logic and figure out if we could introduce some new commnad/aggregation stage to simplify the gathering of this information.

      Exposing those intermediate commands would allow customer to retrieve this information more easily also from other drivers (aka outside of the mongosh)

              Assignee:
              [DO NOT USE] Backlog - Catalog and Routing
              Reporter:
              Alex Bevilacqua
              Votes:
              2 Vote for this issue
              Watchers:
              19 Start watching this issue

                Created:
                Updated: