Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Deploy a Sharded Cluster

Overview

Sharded clusters provide horizontal scaling for large data sets and enable high throughput operations by distributing the data set across a group of servers. See the Sharding Introduction in the MongoDB manual for more information.

Use this procedure to deploy a new sharded cluster managed by Ops Manager. Later, you can use Ops Manager to add shards and perform other maintenance operations on the cluster.

Prerequisites

You must have an existing set of servers to which to deploy, and Ops Manager must have access to the servers.

The servers can exist on your own system or on Amazon Web Services (AWS). To give Ops Manager access to servers on your system, install the Automation Agent to each server.

Important

If you provision your own servers and if you use MongoDB Enterprise, you must install the prerequisite packages on the servers before deploying MongoDB Enterprise on the servers.

Procedure

1

Select the Deployment tab and then the Deployment page.

2

Click edit mode, and then click Add and select Create New Cluster.

3

Configure the sharded cluster.

Enter information as required and click Apply.

To select specific servers to use for the deployment, enter the prefix of the servers in the Eligible Server RegExp field. You can use regular expressions. To use all provisioned servers, enter a period (“.”). To run the deployment on your local machine, enter the name of the machine.

For information on replica set options in the Member Options box, see Replica Set Members in the MongoDB Manual. The votes field applies only to pre-2.6 versions of MongoDB.

To configure additional mongod or mongos options, such as specifying the oplog size, or modifying journaling settings, click Advanced Options. For option descriptions, see Advanced Options for MongoDB Deployments.

4

Click Review & Deploy to review the configuration.

Ops Manager displays the full configuration for you to review.

5

Click Confirm & Deploy.

To view deployment progress, click View Agent Logs and select an agent at the top of the Agent Logs page. To check for updated entries, refresh the page.

If you diagnose an error and need to correct the deployment configuration, click Edit Configuration and then click Edit Configuration again. Reconfigure the deployment through the deployment arrow button or through the Add button. If you cannot find a solution, shut down the deployment. When you complete your changes, click Review & Deploy and then Confirm & Deploy.