MongoDB Community Edition on Centos and Redhat and Amazon Linux

Hits: 1436

The Mongodb Community Edition is a great NoSQL solution. Below you can

find directions and links to install it from a repository as well as from a Preinstalled Ec2 Server

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-amazon/

Configure the package management system (yum).

Create a /etc/yum.repos.d/mongodb-org-3.4.repo file so that you can install MongoDB directly, using yum.

Changed in version 3.0: MongoDB Linux packages are in a new repository beginning with 3.0.

For the latest stable release of MongoDB

Use the following repository file:

Copy
[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
For versions of MongoDB earlier than 3.0

To install the packages from an earlier release series, such as 2.4 or 2.6, you can specify the release series in the repository configuration. For example, to restrict your system to the 2.6 release series, create a /etc/yum.repos.d/mongodb-org-2.6.repo file to hold the following configuration information for the MongoDB 2.6 repository:

MongoDB Community Edition Flexible - Preinstalled for you on EC2
MongoDB Flexible – Preinstalled for you on EC2

Configure the package management system (yum). Create a /etc/yum.repos.d/mongodb-org-3.4.repo file so that you can install MongoDB directly, using yum. Changed in version 3.0: MongoDB Linux packages are in a new repository beginning with 3.0. For the latest stable release of MongoDB Use the following repository file:

 

[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

Source: Install MongoDB Community Edition via Yum Repositories  — MongoDB Manual 3.4

 

Easy to Learn

MongoDB is easy to learn and quick to start with. The basic installation, setup, and execution doesn’t take more than a few hours. The more robust setup might be complex, but I will talk about it later.

MongoDB Community Edition user WiredTiger for Storage management

The WiredTiger storage engine brings document level locking to MongoDB, meaning that writes no longer block a collection or database. While MMAP in 3.0 brought collection level locking, multiple writes to the same collection will still cause the writes to be applied serially and can starve reads from the collection as reads have to wait for the writes to finish. WiredTiger gets rid of the limitation allowing multiple writes to happen concurrently against the same collection. This means that writes and reads scale with the CPU, whereas in MMAP there was a low ceiling for CPU scaling as the locks reduced the throughput.

Another feature WiredTiger introduces, is on-disk compression supporting snappy and zlib. This allows the user to trade off CPU usage, for higher data compression.

http://learnmongodbthehardway.com/schema/wiredtiger/

Server-Side Script

Built in MongoDB Community Edition Support JavaScript. So you don’t even need to learn a new language! If you need some operations to be performed on the server side and not in your application, you can do that in MongoDB. Put your list of mongo statements in a .js file and execute mongo yourFile.js.

Documentation

Having a good documentation can make developers’ lives a lot easier, especially when the developer is new to the technology. MongoDB has superb documentation.

Flexible Data Model

In today’s dynamic use cases and ever-changing applications, having a flexible data model is a boon. MongoDB Community Edition is a flexible data model means that there is no predefined schema, and the document can hold any set of values based on any key.

Source: MongoDB: The Good, The Bad, and The Ugly – DZone Database

Also See: http://charmingwebdesign.com/mongodb-flexible-for-todays-changing-universe/

Leave a Reply