MongoDb移除节点


 description

移除当前副本集中192.168.2.211:27017成员
在运行rs.remove()操作之前,最好关闭要删除的副本集成员,默认情况下,副本集成员等待5分钟,然后再断开与已删除成员的连接

 command

rs.remove("192.168.2.211:27017")

 parameter

remove(hostname) : 从当前副本集中删除指定成员

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.