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

Master-slave bidirectional synchronization data storage method

A two-way synchronization, data storage technology, applied in the field of data processing, can solve problems such as high price and high network bandwidth requirements, and achieve the effect of ensuring effective storage

Inactive Publication Date: 2018-12-28
重庆富民银行股份有限公司
View PDF3 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Existing cross-computer room data backup is usually based on hardware devices, and mirror replication based on block devices is generally implemented by independent storage. The reliability of this method is relatively guaranteed, but special mirror replication equipment is required, and the Data replication of the entire physical hard disk, a large amount of data replication requires high network bandwidth, so the price is relatively expensive, and it is highly dependent on external environments such as network broadband. Therefore, there is an urgent need for a low-cost, network-friendly Master-slave two-way synchronization data storage method across computer rooms with low broadband dependence

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
  • Master-slave bidirectional synchronization data storage method
  • Master-slave bidirectional synchronization data storage method
  • Master-slave bidirectional synchronization data storage method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] Such as figure 1 and figure 2As shown, the data storage method of master-slave two-way synchronization of the present invention comprises the following steps:

[0045] DRBD virtual disk creation steps: install and configure DRBD service on each storage service node, and create DRBD virtual disk;

[0046] Node role definition step: install and configure the Keepalived service for each storage service node, mark the storage service node as the master node or slave node, and define the role of the DRBD virtual disk as the master DRBD virtual disk and slave DRBD virtual disk according to the node role;

[0047] Data synchronization step: back up the data stored in the master DRBD virtual disk to the slave DRBD virtual disk;

[0048] Virtual IP management steps: assign a virtual IP address to the master node, manage the virtual IP address through Keepalived, keep the virtual IP address always on the surviving master node, and automatically define the slave node as the mas...

Embodiment 2

[0080] The difference between this embodiment and Embodiment 1 is that it also includes the following steps:

[0081] Data sampling step: sampling the backup data stored by each slave node;

[0082] Data verification step: Check the backup data sampled by each slave node with the data stored in the master node one by one, and mark the verification results for each slave node; The percentage is determined by the degree of similarity of the data. Assuming that the backup data and the data stored in the master node are completely coincident, the verification result is 100%. Assuming that only half of the backup data and the data stored in the master node can overlap, the verification result is 50%.

[0083] Node screening step: filter out the slave nodes that meet the criteria according to the check result; for example, the check result is more than 90% of the criteria;

[0084] Performance judgment step: judge the performance of the slave nodes that meet the standards, and prio...

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 master-slave bidirectional synchronous data storage method, which relates to the technical field of data processing. The method comprises the following steps: a DRBD virtualdisk creation step: installing and configuring a DRBD service to each storage service node, and creating a DRBD virtual disk; a node role defining step of installing and configuring Keepalived servicefor each storage service node, marking the storage service node as a master node or a slave node, and defining roles of a DRBD virtual disk as a master DRBD virtual disk and a slave DRBD virtual diskaccording to the node role; a data synchronization step: backing up the data stored in the master DRBD virtual disk to the slave DRBD virtual disk; a Virtual IP management step: assigning an virtualIP address to master node, managing the virtual IP address through Keepalived, keeping the virtual IP address always in surviving master node, when master node is inaccessible, slave nodes will be defined as master nodes automatically. The present invention is intended to provide a master-slave bi-directional synchronization data storage method capable of reducing implementation costs and reducingrequirements for an external communication environment.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a master-slave two-way synchronous data storage method. Background technique [0002] With the increasing popularity of network services, it is often necessary to store some commonly used data (such as business data, etc.) on servers in multiple computer rooms at the same time. For example, in order to provide the same service to users all over the country, three computer rooms are set up in Beijing, Guangzhou, and Tibet respectively. Users can access the required services through any node in the computer room. Generally, users access the nearest node in the computer room That's it. At this time, the data stored in the computer rooms in Beijing, Guangzhou and Tibet are the same. In addition, sometimes in order to prevent the service interruption caused by the server hanging in one computer room, multiple computer rooms storing the same data will also be deployed at the ...

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): G06F11/14G06F11/20G06F21/60G06F21/62
CPCG06F11/1456G06F11/1458G06F11/2094G06F21/602G06F21/6218G06F2221/2107
Inventor 李丙洋
Owner 重庆富民银行股份有限公司
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