Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20247

Include "configsvr":true in default replica set config generated by replSetInitiate if node started with --configsvr

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.9
    • None
    • Replication, Sharding
    • None
    • Fully Compatible
    • Sharding A (10/09/15)

    Description

      This is a usability concern.
      Most people when initiate a new replset just run rs.initate() and rely on the replSetInitiate code to generate a good default config for them, then they rs.add() their additional nodes after. Currently if you try that to initiate a CSRS you get:

      > rs.initiate()
      {
              "info2" : "no configuration specified. Using a default configuration for the set",
              "me" : "ubuntu:27019",
              "ok" : 0,
              "errmsg" : "Nodes started with the --configsvr flag must have configsvr:true in their config",
              "code" : 93
      }
      

      Attachments

        Activity

          People

            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: