Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-634

Cannot specify a shard name with the sh.addShard function

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      http://docs.mongodb.org/manual/administration/sharding/#add-a-shard-to-a-cluster mentions specifying the name of a shard with:

      sh.addShard( mongodb0.example.net, name: "mongodb0" )

      That looks like a syntax error, and I don't believe the sh.addShard function actually supports a name at all, according to the console definition in 2.2:

      > sh.addShard
      function (url) {
          return sh._adminCommand({addShard:url}, true);
      }

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 15 weeks, 4 days ago