Sharding (configuration server, mongos, mongosh)

Hello @Sam_Vickerbond, good to know you are trying sharding. It can be little daunting if you are trying sharding for the first time. Here is the documentation / tutorial for Deploy Sharded Cluster from MongoDB Manual.

The documentation has the following steps (titled as Procedure) which will guide you to deploy a sharded cluster and shard a collection. Please follow those (the steps are detailed and are from the above link):

  1. Create the Config Server Replica Set
  2. Create the Shard Replica Sets
  3. Start a mongos for the Sharded Cluster
  4. Connect to the Sharded Cluster
  5. Add Shards to the Cluster
  6. Enable Sharding for a Database
  7. Shard a Collection
  8. Shard Key Considerations (useful to understand the importance of a shard key)
1 Like