These member devices elect a primary member, which begins accepting client-write operations. Remaining devices in the replica-set, with the exception of the arbiter, are designated as secondary members.
replica-set member [<IP>|<FQDN>] {arbiter|priority <0-255>}
replica-set member [<IP>|<FQDN>] {arbiter|priority <0-255>}
replica-set member [<IP>|<FQDN>] {arbiter|priority <0-255>} | Adds a member to the database replica set. To identify
the member, use one of the following options:
After specifying the IP address or FQDN, specify the following:
A replica set should have at least three members. The maximum number of members can go up to fifty (50). However, configuring a three-member replica set is recommended. Replica sets should have odd number of members. In case of an even-numbered replica set, add an arbiter to make the member count odd. This ensures that at least one member gets a majority vote in the primary-member election. |
nx9500-6C874D(config-database-policy-test)#replica-set member 192.168.13.14 arbiter
nx9500-6C874D(config-database-policy-test)#replica-set member 192.168.13.16 priority 1
nx9500-6C874D(config-database-policy-test)#replica-set member 192.168.13.12 priority 2
nx9500-6C874D(config-database-policy-test)#show context database-policy test replica-set member 192.168.13.12 priority 2 replica-set member 192.168.13.14 arbiter replica-set member 192.168.13.16 priority 1 nx9500-6C874D(config-database-policy-test)#
no | Removes a member from the database replica set |