[DOCS-1682] Show example on how to remove nodes using rs.reconfig() Created: 08/Jul/13 Updated: 13/Sep/13 Resolved: 12/Sep/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Thomas Rueckstiess | Assignee: | Bob Grabar |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Days since reply: | 10 years, 22 weeks, 6 days ago | ||||
| Description |
|
In cases where rs.remove() is not available (through driver, or if nodes are down), we don't show any example on how to change the cfg document to remove nodes from the members array and then call rs.reconfig(cfg). For example:
This is just normal javascript syntax and not specific to MongoDB, but it should be shown as an example somewhere, for example on the rs.reconfig() page. The example could be similar to the example given on the Change All Hostnames at the Same Time page. |
| Comments |
| Comment by auto [ 12/Sep/13 ] |
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: |
| Comment by auto [ 12/Sep/13 ] |
|
Author: {u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}Message: Signed-off-by: Sam Kleinman <samk@10gen.com> |