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

Mysql cluster online data redistribution method based on data redundancy and related equipment

A data redundancy and redistribution technology, applied in the field of communication, can solve problems such as performance degradation, complex data text conversion process, difficulty in ensuring consistency, etc., and achieve the effect of improving operating efficiency

Pending Publication Date: 2019-11-08
STATE GRID JIBEI ELECTRIC POWER COMPANY +4
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the logical process needs to query the data first, this process itself is the process of converting the data stored on the disk into readable text data inside the mysql database, and there is conversion overhead; then splicing insert statements consumes a lot of CPU resources; Finally, inserting into the target stage also requires mysql to convert the readable text data into a disk storage format for storage. This process also requires additional transaction log and binlog log overhead.
[0005] 2. The data text conversion process is complicated and it is difficult to ensure consistency
The process of splicing insert statements needs to consider binary data such as character sets, special characters, translation characters, and blobs; the implementation process is very complicated and prone to omissions
Need to add complex verification logic to check the consistency of data movement, which also further reduces performance

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
  • Mysql cluster online data redistribution method based on data redundancy and related equipment
  • Mysql cluster online data redistribution method based on data redundancy and related equipment
  • Mysql cluster online data redistribution method based on data redundancy and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0038] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0039] figure 2 It is a flow chart of the online data redistribution method of mysql cluster based on data redundancy according to the embodiment of the present invention. image 3 It is a schematic diagram of the mysql cluster online data redistribution method base...

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 mysql cluster online data redistribution method based on data redundancy and related equipment. The method comprises the following steps: receiving a data redistribution request; interrupting a change application of data synchronization between a first main data copy and a first standby data copy in the first node according to the data redistribution request; exporting the physical table space of the first standby data copy to generate a table space file, and respectively copying the table space file to a second main data copy and a second standby data copy of a second node; incrementally synchronizing incremental data stored in the first main data copy after a data synchronization change application is interrupted to the second main data copy and the second standby data copy respectively. According to the method, complex sql splicing conversion does not need to be carried out, the consistency of migrated data is guaranteed, and meanwhile the data redistribution efficiency is improved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a data redundancy-based mysql cluster online data redistribution method and related equipment. Background technique [0002] A MySQL database cluster will contain multiple mysql data nodes for data storage. When a new node needs to be added to the cluster, online redistribution of data is required. Common data redistribution algorithms include consistent HASH and virtual mapping tables, etc., to solve how to redistribute data online, that is, which data needs to be moved from which node to which node, but the current data movement usually uses proceed in a logical manner, such as figure 1 As shown, first obtain the data to be moved through SQL query, copy the logical data in full, then insert it into the target node through insert, and finally extract the incremental data and import it to the target node. [0003] Moving data in a logical way mainly has the following dis...

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/23G06F16/27G06F11/14
CPCG06F16/2365G06F16/27G06F11/1448
Inventor 吴佳苏丹杨睿刘超高崧吕冰胡学勇邓卜侨孙雷崔伟刘炜郑红云林韶宾高孝鑫冷曼
Owner STATE GRID JIBEI ELECTRIC POWER COMPANY
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