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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a Config Server Replica Set (CSRS)
Configure the host at
10.0.0.104
as the config server replica set (CSRS) listening on port27019
.- 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
Start the
mongos
query router on lab host10.0.0.104
, and add our newly created shard to it.