forked from docs/doc-exports
Reviewed-by: Boka, Ladislav <ladislav.boka@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
19 lines
3.3 KiB
HTML
19 lines
3.3 KiB
HTML
<a name="dds_01_0012"></a><a name="dds_01_0012"></a>
|
|
|
|
<h1 class="topictitle1">Replica Set</h1>
|
|
<div id="body1495008759160"><p id="dds_01_0012__p7418203421717">A replica set consists of a set of mongod processes. It is a collection of nodes that help ensure data redundancy and reliability.</p>
|
|
<div class="note" id="dds_01_0012__note384375010261"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dds_01_0012__p188447506264">For details about the mongod process, see the MongoDB <a href="https://docs.mongodb.com/v3.2/tutorial/manage-mongodb-processes/index.html" target="_blank" rel="noopener noreferrer">official document</a>.</p>
|
|
</div></div>
|
|
<p id="dds_01_0012__p4922292317836">A replica set consists of three nodes: primary, secondary, and hidden. The three-node architecture is set up automatically, and the three nodes automatically synchronize data with each other to ensure data reliability. </p>
|
|
<ul id="dds_01_0012__ul7572160172233"><li id="dds_01_0012__li1040581172233">Primary node: Primary nodes are used to process both read and write requests.</li><li id="dds_01_0012__li9365232172233">Secondary node: Secondary nodes are used to process read requests only.</li><li id="dds_01_0012__li17178226172233">Hidden node: Hidden nodes are used to back up data.</li></ul>
|
|
<p id="dds_01_0012__p440813339588">You can perform operations on the primary and secondary nodes. If a primary node goes down or becomes faulty, the replica set elects a secondary node as a new primary node and continues normal operations. If there are no secondary nodes available, a hidden node will take over the role of the secondary node to ensure high availability. The following figure shows the replica set architecture.</p>
|
|
<div class="fignone" id="dds_01_0012__fig4417616382"><span class="figcap"><b>Figure 1 </b>Replica set architecture</span><br><span><img id="dds_01_0012__image144172161811" src="en-us_image_0000001096453886.png"></span></div>
|
|
<ul id="dds_01_0012__ul63108919111140"><li id="dds_01_0012__li18981955141813">A driver handles all interactions between your application and the database in a language appropriate to the application. For details, see <a href="https://docs.mongodb.com/drivers/" target="_blank" rel="noopener noreferrer">official documents</a>.</li><li id="dds_01_0012__li31109359111140">You can perform multiple management and control tasks, such as creating instances, changing configurations, and backing up instances. The system flexibly controls and tracks tasks, and manages exceptions based on the operations delivered by you.</li><li id="dds_01_0012__li11548782111140">You can monitor performance information about DB instances, including basic metrics, storage space, access requests, and the number of operations.</li><li id="dds_01_0012__li36830180111140">DDS collects slow query logs and access control logs, recording DB instance running status.</li><li id="dds_01_0012__li63036170111140">You can back up DB instance data and upload them to <span id="dds_01_0012__text14802123442610"></span><span id="dds_01_0012__text146030251676">OBS</span> buckets. DDS supports automated and manual backup creation. Automated backups are kept for seven days by default.</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_01_0021.html">System Architecture</a></div>
|
|
</div>
|
|
</div>
|
|
|