Book Image

MongoDB Cookbook

By : Amol Nayak
Book Image

MongoDB Cookbook

By: Amol Nayak

Overview of this book

<p>MongoDB is a high-performance and feature-rich NoSQL database that forms the backbone of numerous complex development systems. You will certainly find the MongoDB solution you are searching for in this book.</p> <p>Starting with how to initialize the server in three different modes with various configurations, you will then learn a variety of skills including the basics of advanced query operations and features in MongoDB and monitoring and backup using MMS. From there, you can delve into recipes on cloud deployment, integration with Hadoop, and improving developer productivity. By the end of this book, you will have a clear idea about how to design, develop, and deploy MongoDB.</p>
Table of Contents (17 chapters)
MongoDB Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up MongoDB on Amazon EC2 using the MongoDB AMI


In the earlier few recipes, we saw how to start MongoDB in the cloud using a hosted service provided by MongoLab, which gave an alternative to set up MongoDB on all leading cloud vendors. However, if we plan to host and monitor the instance ourselves for greater control or set up within our own virtual private cloud, we can do it ourselves. Though the procedure varies from cloud provider to cloud provider, we will demonstrate it using AWS. There are a couple of ways to do this, but in this recipe, we will do it using the Amazon Machine Image (AMI). The AMI is a template that contains details such as the operating system and the software that will be available on the started virtual machine. All this information will be used while booting up a new virtual machine instance on the cloud. To know more about the AMI, visit http://en.wikipedia.org/wiki/Amazon_Machine_Image.

Talking about AWS, Elastic Cloud Compute (EC2) is a service that lets...