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

Show example rs config in reconfiguration usage section

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • mongodb-2.2
    • None
    • None

    Description

      http://docs.mongodb.org/manual/reference/replica-configuration/#replica-set-reconfiguration-usage

      You show an example of reconfiguring a replica set here:

      cfg = rs.conf()
      cfg.members[0].priority = 0.5
      cfg.members[1].priority = 2
      cfg.members[2].priority = 2
      rs.reconfig(cfg)

      You should print the original and resulting config right in the example and explain what your doing in comments.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 28 weeks, 1 day ago