Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
MongoDB High Availability

You're reading from  MongoDB High Availability

Product type Book
Published in Jul 2014
Publisher
ISBN-13 9781783986729
Pages 164 pages
Edition 1st Edition
Languages
Author (1):
Afshin Mehrabani Afshin Mehrabani
Profile icon Afshin Mehrabani

Table of Contents (17) Chapters

MongoDB High Availability
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Understanding the MongoDB Architecture and Processes Understanding MongoDB's Failures and Limitations Clustering in MongoDB Utilizing a Replica Set Replica Set in Action Understanding the Concept of Sharding Sharding in Action Analyzing and Improving Database Performance Migrating Instances and Reducing Downtime Monitoring and Troubleshooting the Database Index

Utilizing sharding


Sharding is the solution to address scaling issues in MongoDB. Using sharding, developers can horizontally scale the database over multiple servers. The same dataset is divided over multiple servers. Each individual server calls the shard; it is an independent database. All shards together make the single logical database.

The following diagram shows you the sharding process:

Sharding solves the problem of high overload and large datasets. While inserting or reading data, the client or application needs to access only one shard and not all shards. Hence, this change will horizontally scale the throughput and overload. Consequently, the database can support more operations.

On the other hand, by dividing the whole database over different servers, it reduces the amount of data that each server should store. Hence, each shard holds only a specific part of the whole database. As a result, to store 1 TB database using sharding, you can have four different servers, each having...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}