Navigation
This version of the manual is no longer supported.

rs.addArb()

On this page

Description

rs.addArb(host)

Adds a new arbiter to an existing replica set.

Warning

In general, avoid deploying more than one arbiter per 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.

For the following MongoDB versions, pv1 increases the likelihood of w:1 rollbacks compared to pv0 for replica sets with arbiters:

  • MongoDB 3.4.1
  • MongoDB 3.4.0
  • MongoDB 3.2.11 or earlier

See Replica Set Protocol Versions.

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