翻译或纠错本页面
- Reference >
- mongo Shell Methods >
- Replication Methods >
- rs.addArb()
rs.addArb()¶
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.