发明授权
- 专利标题: Method, apparatus, and storage medium for migrating data node in database cluster
-
申请号: US16276168申请日: 2019-02-14
-
公开(公告)号: US11243922B2公开(公告)日: 2022-02-08
- 发明人: Zhongqing Xu , Sen Hu , Yuesen Li , Yuhong Liu
- 申请人: Tencent Technology (Shenzhen) Company Limited
- 申请人地址: CN Shenzhen
- 专利权人: Tencent Technology (Shenzhen) Company Limited
- 当前专利权人: Tencent Technology (Shenzhen) Company Limited
- 当前专利权人地址: CN Shenzhen
- 代理机构: Crowell & Moring LLP
- 优先权: CN201611090677.4 20161201
- 主分类号: G06F16/00
- IPC分类号: G06F16/00 ; G06F16/21 ; G06F11/14
摘要:
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.
公开/授权文献
信息查询