Search International and National Patent Collections

1. (WO2018099397) METHOD AND DEVICE FOR DATA MIGRATION IN DATABASE CLUSTER AND STORAGE MEDIUM

Pub. No.:    WO/2018/099397    International Application No.:    PCT/CN2017/113563
Publication Date: Fri Jun 08 01:59:59 CEST 2018 International Filing Date: Thu Nov 30 00:59:59 CET 2017
IPC: G06F 17/30
Applicants: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
腾讯科技(深圳)有限公司
Inventors: XU, Zhongqing
许中清
HU, Sen
胡森
LI, Yuesen
李跃森
LIU, Yuhong
刘煜宏
Title: METHOD AND DEVICE FOR DATA MIGRATION IN DATABASE CLUSTER AND STORAGE MEDIUM
Abstract:
A method and device for data migration in a database cluster. The method comprises: acquiring a snapshot of a source data node, and according to stock data in a data shard to be migrated backed-up in the snapshot, recording incremental data in the data shard to be migrated (310); migrating the backed-up stock data to a target data node (330); migrating the recorded incremental data, and during the migration, when the incremental data not yet migrated satisfies a preset write-lock condition, instructing the source data node to perform a write-lock operation on the data shard to be migrated and migrating the incremental data not yet migrated to the target data node (350); when the migration of the incremental data is completed, instructing the coordinator node to switch the routing corresponding to the data shard to be migrated from the source data node to the target data node (370).