# 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](/hashicorp-handbook/master.md#replication-model)
* [Sharding Model](/hashicorp-handbook/master.md#sharding-model)

## Getting Started

* [Replication Model](/hashicorp-handbook/master.md#replication-model)

It is also called as Master Slave architecture.

* [Sharding Model](/hashicorp-handbook/master.md#sharding-model)

## License

Apache 2.0 License


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ramitsurana.gitbook.io/hashicorp-handbook/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
