Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
mongodb-2.2
-
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...