This version of the documentation is archived and no longer supported.


On this page



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()  →