发布于 2015-09-14 14:56:29 | 157 次阅读 | 评论: 0 | 来源: 网络整理
参数: |
|
---|
Removes the node described by the hostname parameter from the current replica set. This function will disconnect the shell briefly and forces a reconnection as the replica set renegotiates negotiates which node will be primary. As a result, the shell will display an error even if this command succeeds.
注解
Before running the rs.remove() operation, you must shut down the replica set member that you’re removing.
在 2.2 版更改: This procedure is no longer required when using rs.remove(), but it remains good practice.