You may want to read my guide here on Installing MongoDB onto a Digital Ocean Ubuntu 14.04 server first.
If you want a managed MongoDB cluster that you can scale and let someone handle the administration and upgrades I would recommend you check out MongoDB Atlas ( https://www.mongodb.com/cloud ). Snip from MongoDB Atlas site.
“MongoDB Atlas makes it easy to set up, operate, and scale your MongoDB deployments in the cloud. From high availability to scalability, security to disaster recovery.“
MongoDB Atlas give away a detailed whitepaper that covers
- Which instance type and options to select to meet your application workload
- How to design a schema and your application access patterns to achieve the best performance and scalability
- How to select the right indexes to support your query patterns
- How to monitor your database – e.g., to identify when it’s the right time to add more storage, move to a larger instance type, or scale-out with extra shards
- What you need to do to get the consistency levels required by your application
- Extra steps to secure your data
- Tips for a successful proof of concept
MongoDB Atlas Locations
You can deploy MongoDB clusters (on Amazon Webs Servers) in the following Locations:
MongoDB prices seem reasonable at first glance: https://www.mongodb.com/cloud/atlas/pricing
An M10 with 2GB/10GB Storage would be about $19.344 USD a month. The only catch is you need to deploy three servers minimum and 1.5Gb of the 10GB is used for replication data. So the minimum price a month is about $58.032
Creating a MongoDB Cloud/Atlas Account
Go to https://www.mongodb.com/cloud and create an account.
Tip: don’t create an account until you are ready to create a cluster, I waited a week before creating a cluster and the monthly billing seemed to remember my account creation date as the start of the billing and not the cluster creation date (small bug).
MongDB Atlas Dashboard
The main dashboard is quite nice.
Click the “Build a New Cluster” to review the new cluster options. I’ll go for the cheapest M10 3x server cluster. You can upgrade it later.
# bind_ip <span class="token operator">=</span> 127.0.0.1
/User/bin/mongoimport –db testdb –collection locations –drop –file ./locations.json
The above worked for me (changed the “/admin” to “/THEDATABSE”).
Don’t forget to login to your https://cloud.mongodb.com and set a user with
Appreciation goes to the following resources
Donate and make this blog better
Ask a question or recommend an article