In this lab, you are asked to convert a MongoDB replica set into a sharded cluster. After completing this lab, you will have hands-on experience configuring a MongoDB sharded cluster, as this relates to a replica set.
Successfully complete this lab by achieving the following learning objectives:
- Create a Config Server Replica Set (CSRS)
Configure the host at
10.0.0.104as the config server replica set (CSRS) listening on port
- Convert the Replica Set to a Shard
Configure each secondary replica set member as a
shardsvr. Once all secondaries are done, step down the current primary and configure it as before.
- Start the `mongos` Query Router
mongosquery router on lab host
10.0.0.104, and add our newly created shard to it.