Converting a Replica Set to a Sharded Cluster



We are excited to announce that Cloud Manager now supports converting a replica set to a sharded cluster via Automation. This oft-requested feature will help you scale your deployment more easily. Here’s how:

  1. Head to your Deployment Page and use the “…” menu for an existing replica set to choose “Convert to Sharded Cluster”
  2. Enter in the requested details, like which hosts you want your mongoSes and config servers to be deployed on and on what ports.
  3. Click “Next” and then you can drag and drop processes as needed to tweak your deployment.
  4. Push “Review and Deploy” and then “Confirm and Deploy”
  5. Modify your application to reach out to the mongoSes rather than the replica set

Cloud Manager Automation has now converted your replica set to a sharded cluster. This does not mean that all of your collections and databases are sharded, though. Cloud Manager Automation does not issue enableSharding or shardCollection commands to activate sharding for particular databases and collections, so issuing these and choosing a suitable shard key are left to you. Otherwise, you’re good to go, including adding additional shards via the wrench menu, if necessary.