-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Code Examples, manual, Server
-
Labels:
Hi,
there is a procedure to follow in order to setup an RS using keyfile here
I'd like to suggest a modification in the chapter 5 for the command rs.initiate()
rs.initiate( { _id : <replicaSetName>, members: [ { _id : 0, host : "mongo1.example.net:27017" }, { _id : 1, host : "mongo2.example.net:27017" }, { _id : 2, host : "mongo3.example.net:27017" } ] } )
The value associated with _id field is confusing ('<replicaSetName>').
We cant guess whether its an integer (since the field is called '_id' and the associated value doesn't have quotes) or string type (since the value says 'replicaSetName')
In my opinion, it would be more clear if we have:
rs.initiate(
{
_id : "<replicaSetName>",
or:
rs.initiate(
{
_id : "myReplSet",
(such as this similar example in the documentation or also here, chapter 3)
Regards,
Pierre