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

Sharding management doc page incorrectly implies mongos automatically can tell if shard is single host or replica set

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • mongodb-2.2
    • manual
    • None

    Description

      Page: http://docs.mongodb.org/manual/administration/sharding/#cluster-management
      in Note 5. says:
      "For example:
      sh.addShard( "mongodb0.example.net:27027" )
      If mongodb0.example.net:27027 is a member of a replica set, MongoDB will discover all other members of the replica set."

      This is wrong. The automatic discovery will only happen if you use the syntax: "rsName/hostname:port".

      Later there is this note:

      "Note Changed in version 2.0.3.
      Before version 2.0.3, you must specify the shard in the following form:
      replicaSetName/<seed1>,<seed2>,<seed3>
      For example, if the name of the replica set is repl0, then your sh.addShard() command would be:
      sh.addShard( "repl0/mongodb0.example.net:27027,mongodb1.example.net:27017,mongodb2.example.net:27017" )"

      I think there should be clarification about what changed - you don't have to specify all the seeds but you still must give replicaSetName if it's a replica set. This reads like you don't have to give replSetName/ anymore...

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 17 weeks, 2 days ago