Invention Grant
- Patent Title: Method, apparatus, and storage medium for migrating data node in database cluster
-
Application No.: US16276168Application Date: 2019-02-14
-
Publication No.: US11243922B2Publication Date: 2022-02-08
- Inventor: Zhongqing Xu , Sen Hu , Yuesen Li , Yuhong Liu
- Applicant: Tencent Technology (Shenzhen) Company Limited
- Applicant Address: CN Shenzhen
- Assignee: Tencent Technology (Shenzhen) Company Limited
- Current Assignee: Tencent Technology (Shenzhen) Company Limited
- Current Assignee Address: CN Shenzhen
- Agency: Crowell & Moring LLP
- Priority: CN201611090677.4 20161201
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F16/21 ; G06F11/14

Abstract:
The present disclosure is related to a method and an apparatus for data migration in a database cluster. The method includes obtaining a snapshot of a source data node and recording incremental data in a to-be-migrated data shard in the source data node according to inventory data. The method includes migrating the inventory data to a target data node. The method also includes migrating the incremental data, and during the migration when the unmigrated incremental data satisfies a preset write-lock condition, instructing the source data node to perform a write-lock operation on the to-be-migrated data shard and migrate unmigrated incremental data to the target data node. The method further includes, after the migration of the incremental data is completed, instructing a coordinator node to switch a route corresponding to the to-be-migrated data shard from the source data node to the target data node.
Public/Granted literature
- US20190179808A1 METHOD AND APPARATUS FOR DATA MIGRATION IN DATABASE CLUSTER, AND STORAGE MEDIUM Public/Granted day:2019-06-13
Information query