Skip to content

Commit 0b8acaf

Browse files
committed
High Availability
1 parent 43b409a commit 0b8acaf

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,25 @@ The secondaries replicate the primary\'s oplog and apply the operations to their
501501
<b><a href="#">↥ back to top</a></b>
502502
</div>
503503
504+
## Q. ***How does MongoDB ensure high availability?***
505+
506+
**High Availability (HA)** refers to the improvement of system and app availability by minimizing the downtime caused by routine maintenance operations (planned) and sudden system crashes (unplanned).
507+
508+
**Replica Set**
509+
510+
The replica set mechanism of MongoDB has two main purposes:
511+
512+
* One is for data redundancy for failure recovery. When the hardware fails, or the node is down for other reasons, you can use a replica for recovery.
513+
* The other purpose is for read-write splitting. It routes the reading requests to the replica to reduce the reading pressure on the primary node.
514+
515+
MongoDB automatically maintains replica sets, multiple copies of data that are distributed across servers, racks and data centers. Replica sets help prevent database downtime using native replication and automatic failover.
516+
517+
A replica set consists of multiple replica set members. At any given time, one member acts as the primary member, and the other members act as secondary members. If the primary member fails for any reason (e.g., hardware failure), one of the secondary members is automatically elected to primary and begins to process all reads and writes.
518+
519+
<div align="right">
520+
<b><a href="#">↥ back to top</a></b>
521+
</div>
522+
504523
## Q. ***What is an Embedded MongoDB Document?***
505524
506525
An embedded, or nested, MongoDB Document is a normal document that is nested inside another document within a MongoDB collection. Embedding connected data in a single document can reduce the number of read operations required to obtain data. In general, we should structure our schema so that application receives all of its required information in a single read operation.
@@ -1329,7 +1348,6 @@ In a scenario where an abruption occurs at any point of time or flash disc remai
13291348
<b><a href="#">↥ back to top</a></b>
13301349
</div>
13311350
1332-
#### Q. ***How does MongoDB ensure high availability?***
13331351
#### Q. ***Is MongoDB schema-less?***
13341352
#### Q. ***What is the advantage of the backup features in Ops Manager versus traditional backup strategies?***
13351353
#### Q. ***What is splitting in mongodb?***

0 commit comments

Comments
 (0)