Become a MongoDB DBA: Bringing MongoDB to Production

Learn from our MongoDB experts what it takes to ensure your MongoDB stacks are production-ready. This whitepaper includes tips and tricks that we have collected from our best resources to help you deploy, monitor, manage and scale MongoDB in your environment.

Table of contents

  • 1. Introduction
  • 2. Choosing the right MongoDB version
    • 2.1. Topologies
    • 2.2. Storage engines
  • 3. Securing MongoDB
    • 3.1. Enable authentication
    • 3.2. Authorize users by roles
    • 3.3. Add a replication keyfile
    • 3.4. Does your application require public access?
    • 3.5. Enable firewall rules or security groups
    • 3.6. Enabling SSL
  • 4. Monitoring and Trending
    • 4.1. Host metrics
    • 4.2. dbStats metrics
    • 4.3. serverStatus metrics
    • 4.4. Oplog metrics
    • 4.5. MongoDB locks
    • 4.6. WiredTiger metrics
      • 4.6.1. Locks and concurrency
      • 4.6.2. Transactions
  • 5. Backup and Recovery
    • 5.1. Logical backups
    • 5.2. Physical backups
    • 5.3. Sharded MongoDB backups
    • 5.4. Backup strategies
      • 5.4.1. Offsite backups
      • 5.4.2. Backup encryption
      • 5.4.3. Recovery
  • 6. Scaling MongoDB
    • 6.1. Read scaling
    • 6.2. Reading from a secondary
      • 6.2.1. Setting read preference
      • 6.2.2. Reading from a secondary in a shard
    • 6.3. MongoDB write scaling (sharding)
      • 6.3.1. Sharding tier
      • 6.3.2. Shard tier
      • 6.3.3. Managing shards
  • 7. Conclusion

Introduction

MongoDB is a document data store that has been around for almost a decade already. During the past five years MongoDB evolved into a mature product that features enterprise grade features like scalability (sharding), security and resilience. Not all of these features in the MongoDB Enterprise version are generally available for the public. However with the recent improvements made on the Percona version of MongoDB, some of these feature are now available. With the addition of third party components and storage engines, like RocksDB, the ecosystem of MongoDB has become a flourishing one.

In this whitepaper we will shed a light on choosing the right version for your cluster and cover the basics of preparing MongoDB for production.

Want to read the rest?

Download the full whitepaper for free