MongoDB production grade deployment
How to deploy MongoDB for production environment
This article is about setting up a production ready MongoDB database with the following constraints:
- It shouldn't not use Kubernetes
- It can use Docker
- 2 locations
- Simple EC2 instances
- Keep latency low across multiple regions
- Automated deployments
Links used for this post:
- MongoDB Segmenting Data by Location
https://docs.mongodb.com/manual/tutorial/sharding-segmenting-data-by-location/ - How to go to production with MongoDB
https://severalnines.com/blog/how-go-production-mongodb-top-ten-tips - 12 Tips for Going into Production with MongoDB
https://www.mongodb.com/blog/post/12-tips-going-production-mongodb - MongoDB ulimit configuration
https://docs.mongodb.com/manual/reference/ulimit/ - MongoDB Production Notes
https://docs.mongodb.com/manual/administration/production-notes/ - MongoDB Security checklist
https://docs.mongodb.com/manual/administration/security-checklist/ - Network and Configuration Hardening
https://docs.mongodb.com/manual/core/security-hardening/ - Operations Best Practices
https://www.mongodb.com/blog/post/operations-best-practices-part-1-laying-groundwork-mongodb-high-performance
https://www.mongodb.com/blog/post/operations-best-practices-part-2-managing-mongodb
https://www.mongodb.com/blog/post/operations-best-practices-part-3-deploying-mongodb-confidence - MongoDB on AWS. Guidelines and best practices
https://d36cz9buwru1tt.cloudfront.net/AWS_NoSQL_MongoDB.pdf - Replication
https://docs.mongodb.com/manual/replication/ - Data Center Awareness
https://n2ws.com/blog/ebs-snapshot/best-practices-nosql-databases-amazon-ec2 - Best Practices for Hosting NoSQL Databases on Amazon EC2
https://n2ws.com/blog/ebs-snapshot/best-practices-nosql-databases-amazon-ec2 - Deploy a MongoDB Replica Set in a DevOps fashion style (Infrastructure as Code)
https://medium.com/@cramirez92/deploy-a-mongodb-replica-set-in-a-devops-fashion-style-infrastructre-as-code-f631d7a0ad80