MongoDB Tutorials¶
This index page provides a complete listing of all tutorials available as part of the MongoDB Manual. In addition to these documents, you can refer to the introductory MongoDB Tutorial. If there is a process or pattern that you would like to see included here, please open a Jira Case.
Getting Started¶
Administration¶
Replica Sets¶
- Deploy a Replica Set
- Convert a Standalone to a Replica Set
- Add Members to a Replica Set
- Deploy a Geographically Distributed Replica Set
- Change the Size of the Oplog
- Force a Member to Become Primary
- Change Hostnames in a Replica Set
- Convert a Secondary to an Arbiter
- Reconfigure a Replica Set with Unavailable Members
Sharding¶
- Deploy a Sharded Cluster
- Convert a Replica Set to a Replicated Sharded Cluster
- Add Shards to a Cluster
- Remove Shards from an Existing Sharded Cluster
- Backup a Small Sharded Cluster with mongodump
- Create Backup of a Sharded Cluster with Filesystem Snapshots
- Create Backup of a Sharded Cluster with Database Dumps
- Restore a Single Shard
- Restore Sharded Clusters
- Schedule Backup Window for Sharded Clusters
Basic Operations¶
- Use Database Commands
- Recover MongoDB Data following Unexpected Shutdown
- Copy Databases Between Instances
- Expire Data from Collections by Setting TTL
- Analyze Performance of Database Operations
- Rotate Log Files
- Build Old Style Indexes
- Manage mongod Processes
- Use mongodump and mongorestore to Backup and Restore MongoDB Databases
- Use Filesystem Snapshots to Backup and Restore MongoDB Databases
Development Patterns¶
Data Modeling Patterns¶
- Model Embedded One-to-One Relationships Between Documents
- Model Embedded One-to-Many Relationships Between Documents
- Model Referenced One-to-Many Relationships Between Documents
- Model Data for Atomic Operations
- Model Tree Structures with Parent References
- Model Tree Structures with Child References
- Model Tree Structures with Materialized Paths
- Model Tree Structures with Nested Sets