You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -501,6 +501,25 @@ The secondaries replicate the primary\'s oplog and apply the operations to their
501
501
<b><a href="#">↥ back to top</a></b>
502
502
</div>
503
503
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
+
504
523
## Q. ***What is an Embedded MongoDB Document?***
505
524
506
525
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
1329
1348
<b><a href="#">↥ back to top</a></b>
1330
1349
</div>
1331
1350
1332
-
#### Q. ***How does MongoDB ensure high availability?***
1333
1351
#### Q. ***Is MongoDB schema-less?***
1334
1352
#### Q. ***What is the advantage of the backup features in Ops Manager versus traditional backup strategies?***
0 commit comments