You may want to read my guide here on Installing MongoDB onto a Digital Ocean Ubuntu 14.04 server first.
Advertisement:
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:
- Sydney
- Virginia
- Dublin
- Oregon
MongoDB Pricing
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 = 127.0.0.1
/User/bin/mongoimport –db testdb –collection locations –drop –file ./locations.json
—-
re http://stackoverflow.com/questions/38281673/parse-to-mongodb-atlas-connect
mongodb://username:[email protected]:xxxx,cluster0-shard-00-01-xxxx.mongodb.net:xxxx,cluster0-shard-00-02-xxxx.mongodb.net:xxxx/**THEDATABSE**?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin
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
- https://docs.mongodb.com/master/tutorial/install-mongodb-on-ubuntu/?_ga=1.136227121.1408651081.1446847268
- https://www.mkyong.com/mongodb/mongodb-allow-remote-access/
Donate and make this blog better
Ask a question or recommend an article
[contact-form-7 id=”30″ title=”Ask a Question”]