发布于 2015-09-14 14:56:29 | 146 次阅读 | 评论: 0 | 来源: 网络整理

rs.remove(hostname)
参数:
  • hostname – Specify one of the existing hosts to remove from the current replica set.

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.

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务