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

"deploy sharded cluster" tutorial incorrectly suggests mongos performs replset auto-discovery when using standalone syntax

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • latest master as of writing (2.3.2-pre-, hash 5e5afe90d148fb93d4c0b05470681d57de5bc3e9)

    Description

      From http://docs.mongodb.org/manual/tutorial/deploy-shard-cluster/#add-shards-to-the-cluster

      sh.addShard( "sfo30.example.net" )
      sh.addShard( "sfo40.example.net" )
      If sfo30.example.net and sfo40.example.net are members of a replica set, MongoDB will discover all other members of the replica set.

      But, when I follow along:

      mongos> sh.addShard("target1host")
      {
      	"ok" : 0,
      	"errmsg" : "host is part of set: rs use replica set url format <setname>/<server1>,<server2>,...."
      }

      Attachments

        Activity

          People

            epc Ed Costello
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 9 weeks, 5 days ago