Chapter 13. Deployment and administration

 

This chapter covers

  • Provisioning and hardware requirements
  • Monitoring and diagnostics
  • Backups and administrative tasks
  • Security
  • Performance troubleshooting
  • Deployment checklist

This book would be incomplete without a few notes on deployment and administration. After all, it’s one thing to use MongoDB but quite another to keep it running smoothly in production. The goal of this final chapter is to prepare you to make good decisions when deploying and administering MongoDB. You can think of this chapter as providing the wisdom required to keep you from experiencing the unpleasantness of a production database meltdown.

We’ll start this chapter with MongoDB’s hardware requirements, as well as some options for deploying this hardware. Then, we’ll move into a few sections that discuss how to keep your system running, resilient, and secure. Finally, we’ll end with a deployment checklist you can look back on to make sure you’ve covered all your bases.

13.1. Hardware and provisioning

The first question you need to ask before you deploy MongoDB is, “What I should deploy it on?” If you ran an entire production cluster on a single laptop as we did earlier in this book, you’d be in big trouble. In this section, we’ll discuss how to choose the right topology for your requirements, how different hardware affects MongoDB, and what options are available for provisioning this hardware.

13.1.1. Cluster topology

13.2. Monitoring and diagnostics

13.3. Backups

13.4. Security

13.5. Administrative tasks

13.6. Performance troubleshooting

13.7. Deployment checklist

13.8. Summary