[DOCS-351] Show example rs config in reconfiguration usage section Created: 21/Jul/12  Updated: 08/Sep/12  Resolved: 07/Aug/12

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: mongodb-2.2
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 11 years, 28 weeks, 1 day ago

 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.



 Comments   
Comment by auto [ 07/Aug/12 ]

Author:

{u'date': u'2012-08-07T10:47:00-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-351 adding replica set configuration examples
Branch: master
https://github.com/mongodb/docs/commit/62ef4b7cc53e600d9083ae489f443d9910fc41b3

Comment by auto [ 07/Aug/12 ]

Author:

{u'date': u'2012-08-07T10:47:00-07:00', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: DOCS-351 adding replica set configuration examples
Branch: master
https://github.com/mongodb/docs/commit/bbf9403da960f6e8361b58cb903ef9551b26dde3

Generated at Thu Feb 08 07:38:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.