Files
doc-exports/docs/dcs/umn/dcs-ug-0312036.html
Chen, Junjie 748ac2c008 DCS UMN 20230811 version
Reviewed-by: Mützel, Andrea <andrea.muetzel@t-systems.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-01-24 14:13:13 +00:00

149 lines
13 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<a name="dcs-ug-0312036"></a><a name="dcs-ug-0312036"></a>
<h1 class="topictitle1">Introduction to Migration with DCS</h1>
<div id="body8662426"><div class="section" id="dcs-ug-0312036__section15326173413914"><h4 class="sectiontitle">Migration Modes</h4><p id="dcs-ug-0312036__p151745581897">DCS for Redis supports online migration (in full or incrementally) and backup migration (by importing backup files).</p>
<ul id="dcs-ug-0312036__ul9174105817918"><li id="dcs-ug-0312036__li71741758998">Backup migration is suitable when the source and target Redis instances are not connected, and the source Redis instance does not support the <strong id="dcs-ug-0312036__b126112704543626">SYNC</strong> and <strong id="dcs-ug-0312036__b40182872543626">PSYNC</strong> commands. The data source can be an OBS bucket or a Redis instance.<ul id="dcs-ug-0312036__ul161741858698"><li id="dcs-ug-0312036__li117417581395">Importing data from an OBS bucket: Download the source Redis data and then upload it to an OBS bucket in the same region as the target DCS Redis instance. DCS will read the backup data from the OBS bucket and migrate the data into the target instance.<p id="dcs-ug-0312036__p1917417581916"><a name="dcs-ug-0312036__li117417581395"></a><a name="li117417581395"></a><strong id="dcs-ug-0312036__en-us_topic_0179456696_dcs-migration-090626002_b1758316312529">This migration mode can be used for migrating data from other Redis vendors or self-hosted Redis to DCS for Redis.</strong></p>
</li><li id="dcs-ug-0312036__li71749586919">Importing data from a Redis instance: Back up the source Redis data and then migrate the backup data to DCS for Redis.</li></ul>
</li><li id="dcs-ug-0312036__li3175458197">Migrating data online: If the source and target instances are interconnected and the <strong id="dcs-ug-0312036__en-us_topic_0179456696_dcs-migration-090626002_b93215916549">SYNC</strong> and <strong id="dcs-ug-0312036__en-us_topic_0179456696_dcs-migration-090626002_b191021914115411">PSYNC</strong> commands are supported in the source instance, data can be migrated online in full or incrementally from the source to the target.</li></ul>
<p id="dcs-ug-0312036__p617515587912">The following table describes data migration modes supported by DCS.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dcs-ug-0312036__table1117525815916" frame="border" border="1" rules="all"><caption><b>Table 1 </b>DCS data migration modes</caption><tbody><tr id="dcs-ug-0312036__row71761581895"><th class="firstcol" rowspan="2" valign="top" id="mcps1.3.1.5.2.6.1.1"><p id="dcs-ug-0312036__p18176358298">Migration Mode</p>
</th>
<td class="cellrowborder" rowspan="2" valign="top" headers="mcps1.3.1.5.2.6.1.1 "><p id="dcs-ug-0312036__p1317635815911">Source</p>
</td>
<td class="cellrowborder" colspan="3" valign="top" headers="mcps1.3.1.5.2.6.1.1 "><p id="dcs-ug-0312036__p1717611581593">Target: DCS</p>
</td>
</tr>
<tr id="dcs-ug-0312036__row61761858193"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.1.1 "><p id="dcs-ug-0312036__p71761758992">Single-node or master/standby</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.1.1 "><p id="dcs-ug-0312036__p217612581891">Proxy Cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.1.1 "><p id="dcs-ug-0312036__p10176135819912">Redis Cluster</p>
</td>
</tr>
<tr id="dcs-ug-0312036__row191763584918"><th class="firstcol" rowspan="2" valign="top" width="12.879999999999999%" id="mcps1.3.1.5.2.6.3.1"><p id="dcs-ug-0312036__p417619581596">Importing backup files</p>
</th>
<td class="cellrowborder" valign="top" width="19.78%" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p2176858496">AOF file</p>
<div class="note" id="dcs-ug-0312036__note98878249428"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="dcs-ug-0312036__p16889824204218">AOF files exported from Redis 4.0/5.0/6.0 instances and other instances with RDB compression enabled cannot be imported.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="21.32%" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p171768586913"></p>
</td>
<td class="cellrowborder" valign="top" width="21.310000000000002%" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p1917675820912"></p>
</td>
<td class="cellrowborder" valign="top" width="24.709999999999997%" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p217610581199">×</p>
</td>
</tr>
<tr id="dcs-ug-0312036__row1617617581393"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p1717615581795">RDB file</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p017614585916"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p81761558595"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.3.1 "><p id="dcs-ug-0312036__p121766581597"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row151769581997"><th class="firstcol" rowspan="10" valign="top" width="12.879999999999999%" id="mcps1.3.1.5.2.6.5.1"><p id="dcs-ug-0312036__p1317625816911">Migrating data online</p>
<p id="dcs-ug-0312036__p156351112133210"></p>
</th>
<td class="cellrowborder" valign="top" width="19.78%" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p31771558793">DCS for Redis: Single-node or master/standby</p>
</td>
<td class="cellrowborder" valign="top" width="21.32%" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p7177358299"></p>
</td>
<td class="cellrowborder" valign="top" width="21.310000000000002%" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p217715588919"></p>
</td>
<td class="cellrowborder" valign="top" width="24.709999999999997%" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1817725819912"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row181771558495"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p917716581497">DCS for Redis: Proxy Cluster</p>
<div class="note" id="dcs-ug-0312036__note1273817330468"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="dcs-ug-0312036__p47381333134619">Proxy Cluster DCS Redis 3.0 instances cannot be used as the source, while Proxy Cluster DCS Redis 4.0 or 5.0 instances can.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1217720580912"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p141775585910"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p11771158891"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row201771058797"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p21771658496">DCS for Redis: Redis Cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p15177145815913"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p14177115819917"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p2017712581599"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row19177205817913"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p717714585912">Self-hosted Redis: single-node or master/standby</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p9177658195"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p18177258191"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p2177125812914"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row41770581396"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p12177115814911">Self-hosted Redis: proxy-based cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1017815581797"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p6178258992"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p817819581795"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row917812586916"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p151781585913">Self-hosted Redis: Redis Cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p417845813918"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p191780581395"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p71785581296"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row61781958491"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p19178958494">Other Redis: single-node or master/standby</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p025051133216"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1225014114323"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p20250111153218"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row817819584915"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1317885811915">Other Redis: proxy-based cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p9250151113211"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p17250181183216"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p8251111123215"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row01782588910"><td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p1317813586919">Other Redis: Redis Cluster</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p925116123212"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p6251151193215"></p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><p id="dcs-ug-0312036__p7251101143210"></p>
</td>
</tr>
<tr id="dcs-ug-0312036__row9635212143211"><td class="cellrowborder" colspan="4" valign="top" headers="mcps1.3.1.5.2.6.5.1 "><div class="note" id="dcs-ug-0312036__note968013333324"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="dcs-ug-0312036__p1243221123311">You can migrate data online in full or incrementally from <strong id="dcs-ug-0312036__b13695195422414">other cloud Redis</strong> to <strong id="dcs-ug-0312036__b1769512548248">DCS for Redis</strong> if they are connected and the <strong id="dcs-ug-0312036__b166954545244">SYNC</strong> and <strong id="dcs-ug-0312036__b1769565472413">PSYNC</strong> commands can be run on the source Redis. However, some instances provided by other cloud vendors may fail to be migrated online. In this case, migrate data through backup import or use other migration schemes. <a href="dcs-migration-090626002.html">Migration Tools and Schemes</a></p>
</div></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="dcs-ug-0312036__note31791158490"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="dcs-ug-0312036__ul101797581897"><li id="dcs-ug-0312036__li13179165815920"><strong id="dcs-ug-0312036__b1620164714253">DCS for Redis</strong> refers to Redis instances provided by DCS</li><li id="dcs-ug-0312036__li1179165818912"><strong id="dcs-ug-0312036__en-us_topic_0179456696_dcs-migration-090626002_b681520202814">Self-hosted Redis</strong> refers to self-hosted Redis on the cloud, from other cloud vendors, or in on-premises data centers.</li><li id="dcs-ug-0312036__li1917913582915"><strong id="dcs-ug-0312036__en-us_topic_0179456696_dcs-migration-090626002_b44016013302">Other Redis</strong> refers to Redis services provided by other cloud vendors.</li><li id="dcs-ug-0312036__li91790589910"><strong id="dcs-ug-0312036__b35499604321223"></strong>: Supported. <strong id="dcs-ug-0312036__b209203803921223">×</strong>: Not supported.</li></ul>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dcs-ug-0312035.html">Migrating Data with DCS</a></div>
</div>
</div>