In this lab, students are asked to back up the metadata of a MongoDB replica set. The cluster metadata includes all configuration information for the cluster, especially the mapping from chunks to shards. After completing this lab, students will have hands-on experience backing up the metadata of a MongoDB replica set.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Disable the Cluster Balancer Process
Connect using
mongosh
to the mongos query router running on 10.0.0.101:27017 and disable the balancer process.- Create a Full Copy of Config Instance
Connect to the config server via SSH and make a full backup of the data set.
- Re-enable the Balancer
Connect using
mongosh
to the mongos query router running on 10.0.0.101:27017 and re-enable the balancer process.