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

var type missing in bloc code

      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

            Assignee:
            sarah.olson@mongodb.com Sarah Olson
            Reporter:
            pierre.depretz@mongodb.com Pierre Depretz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

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