In this chapter, we will cover the following recipes related to MongoDB administration:
Renaming a collection
Viewing collection stats
Viewing database stats
Disabling the preallocation of data files
Manually padding a document
Understanding the mongostat and mongotop utilities
Estimating the working set
Viewing and killing the currently executing operations
Using profiler to profile operations
Setting up users in MongoDB
Understanding interprocess security in MongoDB
Modifying collection behavior using the collMod command
Setting up MongoDB as a Windows Service
Configuring a replica set
Stepping down as a primary instance from the replica set
Exploring the local database of a replica set
Understanding and analyzing oplogs
Building tagged replica sets
Configuring the default shard for nonsharded collections
Manually splitting and migrating chunks
Performing domain-driven sharding using tags
Exploring the config database in a sharded setup