Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
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
1. Understanding the MongoDB Architecture and Processes 2. Understanding MongoDB's Failures and Limitations 3. Clustering in MongoDB 4. Utilizing a Replica Set 5. Replica Set in Action 6. Understanding the Concept of Sharding 7. Sharding in Action 8. Analyzing and Improving Database Performance 9. Migrating Instances and Reducing Downtime 10. Monitoring and Troubleshooting the Database Index

Architecture of replica sets


After learning the replication process, we can go ahead and learn about the replica set architecture. In order to create a readily available MongoDB server, you can simply use the replica set network.

So, what is replica set?

A replica set is a group of mongod instances that host the same dataset (http://docs.mongodb.org/manual/core/replication-introduction/).

Each replica set consists of different members and each one is responsible for a particular task. The following list shows you all the possible roles for each member:

  • Primary: A primary node is responsible for accepting all read/write operations from clients. Each replica set can have one and only one primary node. Under some conditions, a primary node can become secondary or a secondary node can become primary by an election process.

  • Secondary: The secondary nodes host the same dataset as primary nodes. Each replica set can have one or more secondary nodes. It's possible that a secondary node changes its...

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}