Mais conteúdo relacionado Semelhante a How-To Easily Deploy MongoDB in the Cloud (20) Mais de GoGrid Cloud Hosting (16) How-To Easily Deploy MongoDB in the Cloud2. How to Easily Deploy MongoDB in the Cloud
The Challenge
How can you deploy a NoSQL database that leverages a
scalable, high-performance, open source, structured
storage system like MongoDB?
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?
Confidential
Unlike a relational database, it doesn’t require you to
configure schema up front
2
It works well with object-oriented languages (JavaScript)
It scales horizontally if you configure it as a sharded
cluster
© 2014 GoGrid
3. How to Easily Deploy MongoDB in the Cloud
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.”
3
Confidential
© 2014 GoGrid
4. How to Easily Deploy MongoDB in the Cloud
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.
4
Confidential
© 2014 GoGrid
5. How to Easily Deploy MongoDB in the Cloud
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.
5
Confidential
© 2014 GoGrid
6. How to Easily Deploy MongoDB in the Cloud
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.
6
Confidential
© 2014 GoGrid
7. How to Easily Deploy MongoDB in the Cloud
Learn More
For more information on MongoDB:
Confidential
Refer to our wiki
7
Read the full blog post
Review the MongoDB online manual
© 2014 GoGrid
8. How to Easily Deploy MongoDB in the Cloud
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.
8
Confidential
© 2014 GoGrid