hottub.patents
US 12,430,301 B2#3432620 Most CitedActiveUnited States (USPTO)Utility

Data migration method and device

0Forward Citations (#3432620 Global)
0.0/yrCitation Velocity (#3432620 Global)
0.00Citation PageRank (#3432620 Global)
10Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Embodiments of the present disclosure provide a data migration method and device, wherein the data migration method comprises: acquiring a migration request for a source database, creating a snapshot of to-be-migrated data in the source database and migrating the snapshot to a target database, reading a data migration log stored in a primary replica database of the source database and synchronizing the data migration log into the target database, and configuring a route for a target primary replica database of the target database according to routing rules of the primary replica database.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method for routing in a distributed database system including leader nodes, follower nodes and candidate nodes, the method comprising: acquiring a migration request for a source database; creating a snapshot of to-be-migrated data in the source database, the source database including a primary replica database and at least one secondary replica database; migrating the snapshot to a target database by adopting a data mirroring backup tool, the target database including at least two replica databases; reading a data migration log stored in the primary replica database of the source database, the primary replica database being a leader node; synchronizing the data migration log into the target database in an incremental synchronization manner; performing a route switching that switches a route from the source database to the target database during the synchronizing the data migration log in response to determining that a quantitative number of synchronized log entries in the data migrat

  2. Claim 2Depends on #1

    The method according to claim 1, wherein the synchronizing the data migration log into the target database comprises: establishing a log synchronization link based on the primary replica database, the at least one secondary replica database, and the at least two replica databases; and synchronizing the data migration log into the target database according to an upstream-downstream connection relationship of multiple node in the log synchronization link.

  3. Claim 3Depends on #2

    The method according to claim 2, wherein the synchronizing the data migration log into the target database according to the upstream-downstream connection relationship of multiple nodes in the log synchronization link comprises: synchronizing the data migration log from the primary replica database into the at least one secondary replica database; and synchronizing the data migration log from the at least one secondary replica database into the at least two replica databases.

  4. Claim 4Depends on #1

    The method according to claim 1, further comprising determining the target primary replica database, the determining the target primary replica database including: initiating an election to the source database based on identification information of the at least two replica databases, wherein the election is used to elect the target primary replica database from the at least two replica databases; acquiring voting results submitted by the primary replica database and the at least one secondary replica database; counting the voting results; and determining one of the at least two replica databases that obtains more votes than a preset threshold as the target primary replica database.

  5. Claim 5Depends on #4

    The method according to claim 4, wherein the determining one of the at least two replica databases that obtains more votes than the preset threshold as the target primary replica database includes: determining one of the at least two replica databases that firstly obtains more votes than the preset threshold as the target primary replica database.

  6. Claim 6Depends on #1

    The method according to claim 1, wherein the creating the snapshot of to-be-migrated data in the source database comprises: creating a snapshot of full to-be-migrated data in the primary replica database or a secondary replica database of the source database.

  7. Claim 7Depends on #6

    The method according to claim 6, wherein the migrating the snapshot to the target database comprises: migrating the snapshot to the target database by a preset migration mode.

  8. Claim 8Depends on #1

    The method according to claim 1, further comprising: after the synchronizing the data migration log into the target database and before the configuring the route for the target primary replica database of the target database according to the one or more routing rules of the primary replica database, judging whether a quantitative number of synchronized log entries in the data migration log meets the preset number threshold; and in response to judging that the quantitative number of synchronized log entries in the data migration log meets the preset threshold, determining that a synchronization progress of the data migration log meets a preset progress threshold.

Technical Overview & Description

CROSS REFERENCE TO RELATED APPLICATIONS This application claims priority to and is a continuation of PCT Patent Application No. PCT/CN2021/094094, filed on 17 May 2021 and entitled “ DATA MIGRATION METHOD AND DEVICE, ” which claims priority to Chinese Patent Application No. 202010477729.3, filed on 29 May 2020 and entitled “ DATA MIGRATION METHOD AND DEVICE, ” which are incorporated herein by reference in their entirety. TECHNICAL FIELD The embodiments of the present disclosure relate to the technical field of databases, and, more particularly, to data migration methods. One or more embodiments of the present disclosure further relate to data migration apparatuses, computing device, and computer-readable storage medium. BACKGROUND With the development of science and technology, the Internet has been deeply involved in all aspects of social life, bringing great convenience to people's work, life, study, and the like. In Internet business operations, data traffic surges (a large increase in the database capacity requirement) or data traffic plummets (a decrease in the database capacity requirement) often occur in some specific time periods. In order to meet elastic requirements, it is generally necessary for a distributed database to have the linear capability of scale-in/scale-out of nodes. In the process of scaling, in order to balance the storage and computing loads, data migration needs to be performed between nodes, and the efficiency of data migration affects the availability and performance of a system during linear scaling. For example, if a communication link is used to directly transmit data blocks, the sizes of their data fragments are limited due to the short delay required by the communication link, leading to a lack of flexibility; or, synchronization and communication links may be blocked when a data set is large, affecting the efficiency of data synchronization. Therefore, there is an urgent need for a data migration method to overcome such problems. S

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (10)

PatentTitleYearCitations

Non-Patent Literature (4)

  • English Translation of International Search Report for corresponding PCT Application No. PCT/CN2021/094094, mailed on Aug. 18, 2021, 2 pages.
  • English Translation of PCT Written Opinion for corresponding PCT application No. PCT/CN2021/094094, dated Aug. 18, 2021, 5 pages.
  • English Translation of Office Action for corresponding CN Application No. 202010477729.3 mailed on Jul. 25, 2023, 4 pages.
  • English Translation of Search Report for corresponding CN Application No. 202010477729.3 mailed on Jul. 25, 2023, 1page.