This topic describes how to use OceanBase Migration Service (OMS) Community Edition to migrate data from a Redis database to an OBKV-Redis database.
Limitations
At present, OMS Community Edition supports only full migration from a Redis database to an OBKV-Redis database.
Redis 2.8.0 and later are supported.
Considerations
To ensure the performance of a data migration task, we recommend that you migrate no more than 1,000 tables at a time.
If the target OBKV-Redis database does not support the data types of source columns, OMS Community Edition uniformly converts the columns into strings.
If a full migration task is interrupted, duplicate list data appears after you restart the task.
Procedure
Create a data migration task.
Log in to the console of OMS Community Edition.
In the left-side navigation pane, click
Data Migration .On the
Data Migration page, clickCreate Migration Task in the upper-right corner.
On the
Select Source and Target page, configure the parameters.Parameter Description Data Migration Task Name We recommend that you set it to a combination of digits and letters. It must not contain any spaces and cannot exceed 64 characters in length. Tag (Optional) Click the field and select a tag from the drop-down list. You can also click Manage Tags to create, modify, and delete tags. For more information, see Use tags to manage data migration tasks.Source If you have created a Redis data source, select it from the drop-down list. If not, click New Data Source in the drop-down list and create one in the dialog box that appears on the right. For more information about the parameters, see Create a Redis data source.Target If you have created an OBKV-Redis data source, select it from the drop-down list. If not, click New Data Source in the drop-down list and create one in the dialog box that appears on the right.Click
Next . On theSelect Migration Type page, selectFull Migration .After a full migration task is started, OMS Community Edition migrates the existing data of tables in the source database to corresponding tables in the target database.
Click
Next . On theSelect Migration Objects page, select the migration objects and migration scope.You can select
Specify Objects orMatch Rules to specify the migration objects. The following procedure describes how to specify migration objects by using theSpecify Objects option. For information about the procedure for specifying migration objects by using theMatch Rules option, see Configure matching rules for migration objects.Notice
The names of tables to be migrated, as well as the names of columns in the tables, must not contain Chinese characters.
If a database or table name contains double dollar signs ("$$"), you cannot create the migration task.
OMS Community Edition also allows you to rename objects, set row filters, view column information, and remove a single migration object or all migration objects.
Operation Description Rename objects OMS Community Edition allows you to rename migration objects. For more information, see Rename a database table.
Note that the new table name must also be in the format ofTableName$ColumnFamilyName.Configure settings OMS Community Edition allows you to filter rows by using WHEREconditions. For more information, see Use SQL conditions to filter data.
You can also view column information of the migration objects in theView Column section.Remove one or all objects OMS Community Edition allows you to remove a single object or all objects to be migrated to the target database during data mapping. - To remove a single migration object:
In the list on the right of theSpecify Migration Scope section, move the pointer over the target object and clickRemove . - To remove all migration objects:
In the list on the right of theSpecify Migration Scope section, clickRemove All in the upper-right corner. In the dialog box that appears, clickOK .
Click
Next . On the Migration Options page, configure the parameters for full migration.Parameter Description Concurrency Speed Valid values: Stable ,Normal ,Fast , andCustom . The amount of resources to be consumed by a full migration task varies based on the migration performance. If you selectCustom , you can setRead Concurrency ,Write Concurrency , andJVM Memory as needed.To view or modify parameters of the full migration component Full-Import, click
Configuration Details in the upper-right corner of theFull Migration section. For more information about the parameters, see Component parameters.Click
Precheck to start a precheck on the data migration task.During the precheck, OMS Community Edition checks the read and write privileges of the database users and the network connectivity of the databases. A data migration task can be started only after it passes all check items. If an error is returned during the precheck, you can perform the following operations:
Identify and troubleshoot the problem and then perform the precheck again.
Click
Skip in theActions column of the failed precheck item. In the dialog box that prompts the consequences of the operation, clickOK .
Click
Start Task . If you do not need to start the task now, clickSave to go to the details page of the data migration task. You can start the task later as needed.OMS Community Edition allows you to modify the migration objects when the data migration task is running. For more information, see View and modify migration objects. After the data migration task is started, it is executed based on the selected migration types. For more information, see the Migration Details section in the View details of a data migration task topic.