What are the elements of the Sharded Cluster ?

  • Sharding is used to create a cluster of MongoDB instances consisting of at least three servers.
  • There are three types of elements in Sharded Cluster.
    1. Shards
    2. Query Router
    3. Config server

Elements of sharded cluster

Shards :

  • It is a single MongoDB instance that holds a subset of the sharded data.
  • It can be deployed as replica sets to provide redundancy and increase availability.
  • The combination of multiple shards creates a complete data set.

Query router :

  • Query router acts as a Mongos providing a stable interface between the application and the sharded cluster.
  • In this MongoDB instance is responsible for routing the client requests to the correct shard.

Config Server :

  • Config Server becomes to store the metadata (Data about the data) and the configuration settings for the whole cluster.

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

MongoDB Vs CouchDB

                MongoDB                  CouchDB It Provides faster read speeds. If read speed is critical to your database, MongoDB is faster than CouchDB. No mobile support provided. It can be run…
View Answer

What are the Features of MongoDB ?

It has so many great features while being a NoSQL database. It is unique and attractive. They are making MongoDB widely usable and popular. Features of MongoDB: Schema-less Database Replication…
View Answer