首页> 外国专利> METHOD AND APPARATUS FOR DATA MIGRATION IN DATABASE CLUSTER, AND STORAGE MEDIUM

METHOD AND APPARATUS FOR DATA MIGRATION IN DATABASE CLUSTER, AND STORAGE MEDIUM

机译:数据库集群中的数据迁移方法和装置以及存储介质

摘要

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.
机译:本公开涉及用于数据库集群中的数据迁移的方法和设备。该方法包括:获取源数据节点的快照,并根据库存数据将增量数据记录在源数据节点中待迁移的数据分片中。该方法包括将库存数据迁移到目标数据节点。该方法还包括迁移增量数据,并且在迁移期间,当未迁移的增量数据满足预设的写锁定条件时,指示源数据节点对要迁移的数据分片执行写锁定操作并迁移未迁移的数据。增量数据到目标数据节点。该方法还包括:在完成增量数据的迁移之后,指示协调器节点将与要迁移的数据碎片相对应的路由从源数据节点切换到目标数据节点。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号