Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data migration method and related device

A technology for data migration, applied in the computer field, can solve problems such as data loss, affecting database stability, affecting database service efficiency, etc., to achieve the effect of improving stability and avoiding the risk of data loss

Active Publication Date: 2020-04-28
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004]However, in the process of reading and writing large-scale data, stopping the database for data migration will affect the service efficiency of the database on the one hand; on the other hand, stopping the process of the database may cause Only the master node in the replica set can provide services. At this time, the master node is a single point, and there is a serious risk of data loss, which affects the stability of the database operation.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data migration method and related device
  • Data migration method and related device
  • Data migration method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0083] The embodiment of the present application provides a data migration method and a related device, which can be applied to a system or program that includes a database or needs to read and write data. By obtaining the file list of the first slave node that needs to perform data migration, the second A slave node is deployed under the master node in the replica set, and the file list contains a snapshot of the data to be migrated in the first slave node; then the file list of the first slave node is backed up to the backup system; when the migration process is triggered Create a second slave node for the data to be migrated; and download the file list of the first slave node from the backup system; then restore the data to be migrated according to the snapshot of the data to be migrated in the first slave node; Further, the data to be migrated is stored in the second slave node. In this way, the data migration of the master-slave node without stopping the service is realiz...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data migration processing method and a related device. The data migration processing method comprises the steps of obtaining a file list of a first slave node needing data migration; then backing up the file list of the first slave node to a backup system; when the migration process is triggered, creating a second slave node for the to-be-migrated data; downloading a filelist of the first slave node from the backup system; and recovering the to-be-migrated data and storing the to-be-migrated data in the second slave node. Therefore, data migration of the master nodeand the slave node under the condition of not stopping service is realized, and the migrated data is processed by the backup system, so that the master node or the upper-layer node cannot be invaded,the risk of data loss is avoided, and the stability of database operation is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a data migration method and related devices. Background technique [0002] With the rise of Internet websites, traditional relational databases have many insurmountable problems in dealing with ultra-large-scale and high-concurrency social networking services (social networking serivces, SNS) type web 2.0 pure dynamic websites, rather than relational databases. Due to its own characteristics, it has developed very rapidly. Non-relational databases can solve the challenges brought by large-scale data collections. However, as the amount of data increases, the failure rate of database nodes also increases. How to deal with the occurrence of failures become a problem. [0003] Generally, you can stop the database service and select one of the slave databases as the data source; then copy the database source file to the new node; after the copy is completed, start both th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/21G06F16/11G06F11/14
CPCG06F16/214G06F16/128G06F11/1448
Inventor 刘翔杨林彭振翼邓建坤
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products