Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering MongoDB 4.x

You're reading from   Mastering MongoDB 4.x Expert techniques to run high-volume and fault-tolerant database solutions using MongoDB 4.x

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789617870
Length 394 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Alex Giamas Alex Giamas
Author Profile Icon Alex Giamas
Alex Giamas
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Basic MongoDB – Design Goals and Architecture FREE CHAPTER
2. MongoDB – A Database for Modern Web 3. Schema Design and Data Modeling 4. Section 2: Querying Effectively
5. MongoDB CRUD Operations 6. Advanced Querying 7. Multi-Document ACID Transactions 8. Aggregation 9. Indexing 10. Section 3: Administration and Data Management
11. Monitoring, Backup, and Security 12. Storage Engines 13. MongoDB Tooling 14. Harnessing Big Data with MongoDB 15. Section 4: Scaling and High Availability
16. Replication 17. Sharding 18. Fault Tolerance and High Availability 19. Other Books You May Enjoy

An architectural overview

MongoDB's replication is provided in the following diagram:

The primary server is the only one that can take writes at any time. The secondary servers are in a hot standby state, ready to take over if the primary server fails. Once the primary server fails, an election takes place regarding which secondary server will become primary.

We can also have arbiter nodes. Arbiter nodes do not hold any data, and their sole purpose is to participate in the election process.

We must always have an odd number of nodes (including arbiters). Three, five, and seven are all fine, so that in the event of the primary (or more servers) failing, we have a majority of votes in the election process.

When the other members of a replica set don't hear from the primary for more than 10 seconds (configurable), an eligible secondary will start the election process to...

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 ₹800/month. Cancel anytime