Navigation
This version has reached end of life on October 2016. Learn more about upgrading your version of MongoDB.

rs.addArb()

On this page

Description

rs.addArb(host)

Adds a new arbiter to an existing replica set.

The rs.addArb() method takes the following parameter:

Parameter Type Description
host string Specifies the hostname and optionally the port number of the arbiter member to add to replica set.

This function briefly disconnects the shell and forces a reconnection as the replica set renegotiates which member will be primary. As a result, the shell displays an error even if this command succeeds.

←   rs.add() rs.conf()  →