Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
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:
cfg = rs.conf()
|
cfg.members.splice(3,1) // remove 3rd node
|
rs.reconfig(cfg)
|
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.