Docs Menu

Docs HomeMongoDB Ops Manager

Add a Shard to a MongoDB Cluster

You can use Ops Manager to add a shard to a MongoDB sharded cluster.

1
  1. If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it is not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If it is not already displayed, click Deployment in the sidebar.

  1. Click the Clusters view.

2
3
  1. Expand SHARD SETTINGS.

  2. Click Add a Shard to add ~bin.mongod processes to the shard.

    To add additional ~bin.mongod processes to the shard, click the Add a Mongod link.

4
Setting
Description
Member

Select one of the following replica set member roles from the menu:

  • Default

    A data-bearing member of the replica set that can become the primary and vote in elections.

  • Arbiter

    A non-data bearing member of the replica set that can vote in elections. Corresponds to the arbiterOnly replica configuration option.

  • Hidden

    A data-bearing member of the replica set that can vote in elections. Corresponds to the hidden replica configuration option.

  • Delayed Hidden

    A data-bearing member of the replica set that can vote in elections. Corresponds to the secondaryDelaySecs and hidden replica configuration options.

Hostname

Select from the menu the host to which Ops Manager Automation deploys the replica set member. The menu only lists hosts under Ops Manager Automation. For complete documentation on adding servers to Ops Manager Automation, see Provision Servers for Automation.

This hostname can be a hostname, an FQDN, an IPv4 address, or an IPv6 address.

Port

Specify the IANA port number for the ~bin.mongod process. This setting corresponds to the net.port configuration file option. Defaults to 27017.

The ~bin.mongod must have exclusive access to the specified port. If deploying multiple ~bin.mongod processes to a single host, you must select a unique unused port for each process.

Votes

Specify the number of votes that the replica set member has during elections. This setting corresponds to the votes ~bin.mongod replica set configuration option.

Priority

Specify the priority of the member during elections. Replica set members with a priority of 0 cannot become the primary and cannot trigger elections. This setting corresponds to the priority ~bin.mongod replica set configuration option.

Delay

Specify the number of seconds "behind" the primary member this member should "lag". This setting corresponds to the secondaryDelaySecs ~bin.mongod replica set configuration option.

Build Indexes

Specify true to direct the ~bin.mongod to build indexes. This setting corresponds to the buildIndexes ~bin.mongod replica set configuration option.

Tags

Specify the tag or tags associated to the replica set. This setting corresponds to the tags ~bin.mongod replica set configuration option.

For complete documentation on replica set tags, see Replica Set Tags

5
←  Convert Config Servers to a Replica SetRemove a Shard from a MongoDB Cluster →