Book Image

MongoDB Cookbook

By : Amol Nayak
Book Image

MongoDB Cookbook

By: Amol Nayak

Overview of this book

<p>MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of numerous complex development systems. You will certainly find the MongoDB solution you are searching for in this book.</p> <p>Starting with how to initialize the server in three different modes with various configurations, you will then learn a variety of skills including the basics of advanced query operations and features in MongoDB and monitoring and backup using MMS. From there, you can delve into recipes on cloud deployment, integration with Hadoop, and improving developer productivity. By the end of this book, you will have a clear idea about how to design, develop, and deploy MongoDB.</p>
Table of Contents (17 chapters)
MongoDB Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Administration

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