Book Image

MongoDB High Availability

By : Afshin Mehrabani
Book Image

MongoDB High Availability

By: Afshin Mehrabani

Overview of this book

Table of Contents (17 chapters)
MongoDB High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Sharding in MongoDB


MongoDB has a great solution to provide clustering. Sharding is one of the remarkable MongoDB features that enable developers to easily create a cluster in MongoDB using different mongod instances in between the servers.

Sharding consists of various parts such as replica sets and configuration servers. Before discussing more about clustering and sharding, you need to learn the basic terms of clustering in MongoDB. In the next sections, we will discuss different aspects of the sharding architecture.

Understanding replication

To start with, you need to know the basic components of sharding in MongoDB. One of the major features required for clustering in MongoDB is replication. Replication is a procedure to synchronize data through various servers. Actually, by using replication, you can save or copy the same data between different servers, so this redundancy can protect the database from the data loss of a single server.

Furthermore, replication allows you to use other servers...