rs.addArb()

rs.addArb(hostname)
参数:
  • host (string) – Specifies a host (and optionally port-number) for a arbiter member for the replica set.

Adds a new arbiter to an existing replica set.

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

MongoDB Manual (Index)

关于

生态系统

格式

资源