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.
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.