how-to easily deploy mongodb in the cloud
DESCRIPTION
Use GoGrid’s 1-Button Deploy™ of MongoDB to take advantage of powerful SSD Cloud Servers and easily deploy a fully configured replica set.TRANSCRIPT
By Rupert Tagnipes, Sr. Product Manager
How-To Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
2 Confidential2
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
The Solution Use GoGrid’s 1-Button Deploy™ of MongoDB to take advantage of powerful SSD Cloud Servers and easily deploy a fully configured replica set.
Why MongoDB? It works well with object-oriented languages (JavaScript) Unlike a relational database, it doesn’t require you to
configure schema up front It scales horizontally if you configure it as a sharded
cluster
The Challenge How can you deploy a NoSQL database that leverages a
scalable, high-performance, open source, structured storage system like MongoDB?
3 Confidential3
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Step 1: Log Into the Management Console
Log into your GoGrid account at my.gogrid.com. Click on the add button to open the “Add New
Infrastructure” window. Click on “Big Data Clusters” and select “Mongo.”
4 Confidential4
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Step 2:Select a Production or Development Replica Set
When this window appears, select a Production or Development replica set.
Click Deploy to deploy all the servers, related infrastructure, and configurations.
5 Confidential5
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Step 3:Log into a Node
You’ll now see the servers for each node as well as an icon representing the cluster itself.
Use our Console Service or your favorite client to SSH into the server.
Locate the server with “01” in its name; this is the Primary.
Once you’re logged into that server, type “mongo” at the prompt to have a command line interface with the database.
If you don’t get any errors, MongoDB should be running successfully on that server.
6 Confidential6
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Step 4:Confirm You’re Logged Into the Primary Server
If the prompt says Primary, then you’re logged into the correct server. If it says Secondary, then you need to find the primary. (You won’t be able to write on the secondaries, so you need to work directly on the primary.)
Another way to find the primary is to enter “db.is Master()”.
This command will return a document with details regarding the primary and also all the hosts.
There is a key called primary, and it will display the IP address of the server.
7 Confidential7
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Learn More For more information on MongoDB:
Read the full blog post Refer to our wiki Review the MongoDB online manual
8 Confidential8
How to Easily Deploy MongoDB in the Cloud
© 2014 GoGrid
Try it Yourself! If you want to see if MongoDB is the right solution for
you, just visit http://www.gogrid.com/solutions/mongodb and request a free trial.