doc-exports/docs/rds/umn/rds_switch_ha.html
Ru, Li Yi f51ec873f3 rds_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: Ru, Li Yi <liyiru7@huawei.com>
Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
2024-06-05 10:42:11 +00:00

22 lines
5.0 KiB
HTML

<a name="rds_switch_ha"></a><a name="rds_switch_ha"></a>
<h1 class="topictitle1">Manually Switching Between Primary and Standby DB Instances</h1>
<div id="body1522725468776"><div class="section" id="rds_switch_ha__section65309468111824"><h4 class="sectiontitle">Scenarios</h4><p id="rds_switch_ha__p62205146112141">If you choose to create primary/standby DB instances, <span id="rds_switch_ha__text17163125818533">RDS</span> will create a primary DB instance and a synchronous standby DB instance in the same region. You can access the primary DB instance only. The standby instance serves as a backup. You can manually promote the standby DB instance to the new primary instance for failover support.</p>
</div>
<div class="section" id="rds_switch_ha__section45499509111836"><h4 class="sectiontitle">Constraints</h4><ul id="rds_switch_ha__ul8577183120348"><li id="rds_switch_ha__li6577131123411">A DB instance is running properly.</li><li id="rds_switch_ha__li6577153118348">The replication between the primary and standby instances is normal.</li></ul>
</div>
<div class="section" id="rds_switch_ha__section44566875111846"><h4 class="sectiontitle">Procedure</h4><ol id="rds_switch_ha__ol36506495172844"><li id="rds_switch_ha__li17616348171"><span>Log in to the management console.</span></li><li id="rds_switch_ha__li146168481712"><span>Click <span><img id="rds_switch_ha__rds_modify_instance_name_en-us_topic_0192953815_image192529212293" src="en-us_image_0000001191211679.png"></span> in the upper left corner and select a region and a project.</span></li><li id="rds_switch_ha__li96167481711"><span>Click <strong id="rds_switch_ha__rds_modify_instance_name_b171171523153019">Service List</strong>. Under <strong id="rds_switch_ha__rds_modify_instance_name_b111722319302">Database</strong>, click <strong id="rds_switch_ha__rds_modify_instance_name_b15118152363010">Relational Database Service</strong>. The RDS console is displayed.</span></li><li id="rds_switch_ha__li61161897172844"><span>On the <strong id="rds_switch_ha__b84235270615843">Instances</strong> page, click the target primary/standby DB instance.</span></li><li id="rds_switch_ha__li831074114359"><span>In the <strong id="rds_switch_ha__b537075754218">DB Information</strong> area on the displayed <span class="uicontrol" id="rds_switch_ha__uicontrol230942777104334"><b>Basic Information</b></span> page, click <span class="uicontrol" id="rds_switch_ha__uicontrol48268948112917"><b>Switch</b></span> in the <strong id="rds_switch_ha__b12699950133715">DB Instance Type</strong> field.</span><p><p id="rds_switch_ha__p7944201012373">Alternatively, click <span><img id="rds_switch_ha__image29371010123719" src="en-us_image_0000001191211577.png"></span> in the DB instance topology on the <strong id="rds_switch_ha__b421317819438">Basic Information</strong> page to perform a primary/standby switchover.</p>
<div class="notice" id="rds_switch_ha__note14803172632719"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="rds_switch_ha__p2803226122718">A primary/standby switchover may cause service interruptions for some seconds or minutes (depending on the replication delay). If the replication delay is too long, a small amount of data may be lost. To prevent traffic congestion, you are advised to perform a switchover during off-peak hours.</p>
</div></div>
</p></li><li id="rds_switch_ha__li6851131318317"><span>In the <span class="uicontrol" id="rds_switch_ha__uicontrol945319592154625"><b>Switch Primary/Standby Instances</b></span> dialog box, click <span class="uicontrol" id="rds_switch_ha__uicontrol2025938822154455"><b>Yes</b></span> to switch between the primary and standby DB instances.</span><p><p id="rds_switch_ha__p1585111310315">If the replication status is <span class="uicontrol" id="rds_switch_ha__uicontrol50227929310057"><b>Available</b></span> and the replication delay is greater than 300s, the primary/standby switchover task cannot be delivered. </p>
</p></li><li id="rds_switch_ha__l6f2649c440bc4d59b0ca6d9640c496d8"><span>After a switchover is successful, you can view and manage the DB instance on the <span class="uicontrol" id="rds_switch_ha__uicontrol1362265152119"><b>Instances</b></span> page.</span><p><ul id="rds_switch_ha__ul1174910499416"><li id="rds_switch_ha__li336014511480">During the switchover process, the DB instance status is <strong id="rds_switch_ha__b317387762195444">Switchover in progress</strong>.</li><li id="rds_switch_ha__li147497499413">In the upper right corner of the DB instance list, click <span><img id="rds_switch_ha__image17447059193220" src="en-us_image_0000001191131421.png"></span> to refresh the list. After the switchover is successful, the DB instance status will become <span class="uicontrol" id="rds_switch_ha__uicontrol11336414112110"><b>Available</b></span>.</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_05_0001.html">Instance Modifications</a></div>
</div>
</div>