# Mongodb-Cluster-Setup

Setting up Mongodb cluster on aws using Master-Slave and Sharding db models.

## Architecture

### Master Slave Architecture

![master-slave](https://user-images.githubusercontent.com/8342133/29181915-85e65fda-7e1a-11e7-80dd-eddcbd9fb630.png)

### Sharding Model

## Comparisions

| Features/Models |                          Replication                         |                    Sharding                    |
| --------------- | :----------------------------------------------------------: | :--------------------------------------------: |
| Usage           | For Regular Production Usage, redundancy & high availability | Large data sets and high throughput operations |
| Monitoring      |                      Mongostat,Mongotop                      |               Mongostat,Mongotop               |

## Models

* [Replication Model](#replication-model)
* [Sharding Model](#sharding-model)

## Getting Started

* [Replication Model](#replication-model)

It is also called as Master Slave architecture.

* [Sharding Model](#sharding-model)

## License

Apache 2.0 License
