Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1919

Sharding Shell Helper that Checks if the Cluster has a Config Shard

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: sh, Shell API
    • 2
    • Developer Tools

      In MongoDB 8.0 the sharded clusters now have the ability to run a config shard that stores cluster metadata and user collections. It would be nice if there was a shell helper that allowed an operator to quickly tell if the cluster has a config shard. 

      Running listShards and returning true or false determined by if there's a shard with an _id value of config seems like enough.

      Potential name - sh.configShardEnabled()

            Assignee:
            Unassigned Unassigned
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: