In this chapter, we will see the following recipes related to MongoDB administration:
Renaming a collection
Viewing collection stats
Viewing database stats
Manually padding a document
The mongostat and mongotop utilities
Getting current executing operations and killing them
Using profiler to profile operations
Setting up users in Mongo
Interprocess security in Mongo
Modifying collection behavior using the collMod command
Setting up MongoDB as a Windows service
Replica set configurations
Stepping down as primary 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 non-sharded collections
Manual split and migration of chunks
Domain-driven sharding using tags
Exploring the config database in a sharded setup